Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

finding if the current account is administrative

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
What is a quick way to find out if someone is an administrator or not in XP/2000 systems? Is there an API or some other visual C++ methods for it ..... Thanx
 
The easiest way - try to make the operation You wish and check, if it was successfully. If not, You have not enough rights.
There are no APIs to do that. You can use some functions to find it out, for example, NetGroupAdd(...) - this function can be executed from admins and account operators only, and for groups with administrative rights - from administrators only.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top