Click here to Skip to main content
15,897,032 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

i have one username, i need to check that username is admin user account or not.
how to check?
Any API. I searched, but i didn't get.
Posted

Maybe it[^] will help you ? :)
 
Share this answer
 
The following CodeProject article covers nicely this subject:

A Quick-Start Guide of Process Mandatory Level Checking and Self-elevation under UAC

If you generalize the IsUserInAdminGroup by allowing an arbitrary access token to be passed, you can achieve what you asked for.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900