Re: Win32Lib getUserName() problem
- Posted by mattlewis (admin) Dec 16, 2009
- 1379 views
AndyDrummond said...
Ah. This is a problem. First - the error is:
Error 464 - Couldn't link to function GetUserNameExABut more serious is that looking at the MS website it seems this is only available on Win XP Professional - and that is really a limitation I can't enforce.
Actually, that's not true, according to: http://support.microsoft.com/kb/222440
It references secur32.dll all the way back to Win95. However, I noticed you were trying to get it from advapi32.dll, which is incorrect. Try changing that to Secur32.dll (which is what the docs for GetUserNameEx reference).
Matt