Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++
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 4-Nov-12 23:30pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Maybe it[^] will help you ? Smile | :)
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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.
  Permalink  

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 472
1 sanket saxena 355
2 CPallini 205
3 thatraja 200
4 OriginalGriff 195
0 Sergey Alexandrovich Kryukov 8,784
1 OriginalGriff 5,025
2 Peter Leow 3,839
3 Maciej Los 3,535
4 Er. Puneet Goel 3,107


Advertise | Privacy | Mobile
Web04 | 2.8.140415.2 | Last Updated 5 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid