Re: Win32Lib getUserName() problem
- Posted by mattlewis (admin) Dec 16, 2009
- 1388 views
AndyDrummond said...
I tried C_LONG rather than C_INT just in case; same "klonk!" and failure when the w32Func call is made. I copied the code from Win32Lib's getUserName() with enhancements. The value of xGetUserNameEx is valid looking. I called with format equal to 1.....
Your code looks ok to me. Have you tried any of the other formats? If it fails, you might try calling GetLastError to see if there's anything interesting there.
Matt