Re: Function to know the right

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: David (FlyLikeAnEagle_at_United.Com)
Date: 08/12/04


Date: Wed, 11 Aug 2004 21:21:15 -0700

On Wed, 11 Aug 2004 23:19:50 UTC, Don HO <donho@altern.org> wrote:

> Hi,
>
> Is there a way to know whether if the current user has the right of
> Administrator under winnt/w2k/xp ?
>
> Thanx in advance
>
> Don

  Don,

  There certainly is. I don't recall the calls required. You
might try posting your inquiry to the microsoft.public.vc.mfc
group. There are several active MVPs there that can answer your
question and point you to sample code faster than I can. A
google search limited to that group might also find your answer
pretty quick.

  Okay, a quick google search on that group with "administrator
determine" found serveral promising leads. The post appended
below is an article that probably describes what you need.
I couldn't find a link to that article.

  David

=====

Pepe,
> Hi!
>
> Can anybody help me how to find out if the current user is in Administrators
> group?
> I need it in my installation SW.

Knowledge Base Article Q118626 "HOWTO: Determine if Running in User Context
of Local Admin Acct" has the answer.



Relevant Pages

  • Using single Programm as Admin under User Profile
    ... logged in as Administrator ... ... User "Admin rights" and everything okay ... ... other "problematic Program" with Administrator Rights ... so "normal User Account" could use this ...
    (microsoft.public.windowsxp.security_admin)
  • Re: A Glaring Lack of the Obvious
    ... :: they've reached the Bay Area? ... : dbd@xxxxxxxxxxxxxxxxxx (David DeLaney) ... okay, my search is temporarily hampered by "San Francisco" being ... right on the Google search that they are VA KY TN only. ...
    (rec.arts.sf.written)
  • Forgot password - How to bypass help please
    ... i fix this problem by starting the machine in the safe ... mode and that created a new user 'Administrator" which ... there is a file on google search called: ... SAM xp password reset ...
    (microsoft.public.windowsxp.security_admin)
  • Install Office 2003 on terminal server
    ... seems that the user who has the doc open is not a Administrator. ... I have tryed to reinstall office with the "Change User /install" but ... Okay, then I made a new server and that did help. ... But the problem is a have 6 Terminal server witch have the problem. ...
    (microsoft.public.windows.terminal_services)
  • Re: Help finding some freeware to burn MP3 files........(NBC)
    ... Google Search. ... Any other time would have been okay but I really wanted ... some human touch on this one. ... I apologise. ...
    (rec.music.artists.springsteen)