|
-
May 19th, 1999, 11:04 AM
#1
GetUserName
how can i get the username for win9x
GetUserName() only works proper with win NT
-
May 19th, 1999, 11:56 AM
#2
Re: GetUserName
For me the following code worked well with Win95. But I could never find out why it did not work reliably during the login script.
char buffer[1000];
int size;
CString Username;
//Benutzer ermitteln
size=sizeof(buffer);
GetUserName(buffer, &size);
Username = buffer;
Hiran
-
May 20th, 1999, 02:17 AM
#3
Re: GetUserName
Thank you for your answere but your code don't work.
the function GetUserName must have a unsigned lond as the 2nd param.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|