Re: Detecting Process Privileges
From: Jeffrey Hamblin (jhamblin_at_online.microsoft.com)
Date: 12/19/03
- Next message: Daniel McGloin: "Re: Sign w/ BSafe; Verify w/ MS Crypto; Error: Invalid Signature"
- Previous message: Indraneel Sarkar: "CryptAcquireContext() question."
- In reply to: Elisha Berns: "Detecting Process Privileges"
- Next in thread: Pavel Lebedinsky: "Re: Detecting Process Privileges"
- Reply: Pavel Lebedinsky: "Re: Detecting Process Privileges"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 18 Dec 2003 17:24:38 -0800
CheckTokenMembership can do this for you.
"Elisha Berns" <e.berns@computer.org> wrote in message
news:03eb01c3c4de$c74f9090$a301280a@phx.gbl...
> Forgive the ignorance about security matters, this is
> perhaps a newbie question:
>
> During installation of a font I need to write to a
> registry key to make sure the font is properly installed.
> Apparently this only works if the current process
> has "admin" privileges.
>
> So how can I detect that the current process, or user,
> has "admin" write privileges for this reg key?
>
> Thanks for any help here,
>
> Elisha Berns
- Next message: Daniel McGloin: "Re: Sign w/ BSafe; Verify w/ MS Crypto; Error: Invalid Signature"
- Previous message: Indraneel Sarkar: "CryptAcquireContext() question."
- In reply to: Elisha Berns: "Detecting Process Privileges"
- Next in thread: Pavel Lebedinsky: "Re: Detecting Process Privileges"
- Reply: Pavel Lebedinsky: "Re: Detecting Process Privileges"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|