- CString sysop::GetSysUser()
- {
- BOOL bAdminPrivilege = FALSE;
- TCHAR strUserName[80+1];
- DWORD nUserNameLength = 80;
- GetUserName(strUserName,&nUserNameLength);
- return CString(strUserName);
- }
- //该片段来自于http://www.codesnippet.cn/detail/230120131870.html
来源: http://www.codesnippet.cn/detail/230120131870.html