Re: Win32Lib getUserName() problem

new topic     » goto parent     » topic index » view thread      » older message » newer message
AndyDrummond said...

Ah. This is a problem. First - the error is:

Error 464 - Couldn't link to function GetUserNameExA 
 
But 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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu