May 19th, 1999, 11:04 AM
how can i get the username for win9x
GetUserName() only works proper with win NT
GetUserName() only works proper with win NT
|
Click to See Complete Forum and Search --> : GetUserName May 19th, 1999, 11:04 AM how can i get the username for win9x GetUserName() only works proper with win NT hiran May 19th, 1999, 11:56 AM 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 Thank you for your answere but your code don't work. the function GetUserName must have a unsigned lond as the 2nd param. codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |