获取当前系统用户

BOOL bAdminPrivilege   =   FALSE; 
TCHAR strUserName[80+1];
DWORD nUserNameLength = 80;

GetUserName(strUserName,&nUserNameLength);

AfxMessageBox(strUserName);

  

posted @ 2014-07-10 14:36  苍洱  阅读(144)  评论(0编辑  收藏  举报