Click here to Skip to main content
12,703,063 members (29,111 online)
Rate this:
 
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 5-Nov-12 0:30am
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Maybe it[^] will help you ? :)
  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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.170118.1 | Last Updated 5 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100