Detect Privileges
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
I am writing a Win32 application that needs to be able to detect whether or not the user has administrator privileges. Anyone know how to detect this? Thanks! :wtf:
NetUserGetInfo(servername, username, USER_INFO_1, bufptr); http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netmgmt/netmgmt/netusergetinfo.asp[^]