BOOL bAdminPrivilege = FALSE; TCHAR strUserName[80+1]; DWORD nUserNameLength = 80; GetUserName(strUserName,&nUserNameLength); AfxMessageBox(strUserName);
获取当前系统用户,布布扣,bubuko.com
获取当前系统用户
原文:http://www.cnblogs.com/a9999/p/3835687.html