?Code:void IsGuest(){ char username[100]; if (!GetUserName(sizeof(username), &username)) exit(0); //couldn't figure it out, probably wanna exit if (strcmp(username, "Guest") == 0) exit(0); }
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 6 of 6
Thread: Guest user restrictionThreaded View
Tags for this Thread |
Click Here to Expand Forum to Full Width |