Re: How to raise rights...
- From: "Eugene Gershnik" <gershnik@xxxxxxxxxxx>
- Date: Wed, 6 Jul 2005 04:26:33 -0700
Christian Kaiser wrote:
> oh well, sounds like another "if OSVersion>="... Good idea, but a bit
> late
> from MS. NT4 is still existing.
Then you have a problem. CredUI API only exists on XP while LogonUser is
inaccessible to non-admins on Win2k and NT (IIRC, details in MSDN). You may
need to use the horrible code from here
http://support.microsoft.com/default.aspx?scid=kb;EN-US;180548
as well as supply your own credentials dialog.
> One question: if I'm impersonating an admin, which user is active
> when I
> call CreateProcess()? I guess the "current" user, that is in this
> case the
> admin, and not the original user which called setup. Right?
Depends on what you mean by active. ;-) It is a non-technical term without
definite meaning. What happens is that the current token for the thread that
called ImpersonateXXX becomes the token of administrator. Token is used for
access checks, things like GetUserName etc.
--
Eugene
http://www.gershnik.com
.
- Follow-Ups:
- Re: How to raise rights...
- From: Christian Kaiser
- Re: How to raise rights...
- References:
- How to raise rights...
- From: Christian Kaiser
- Re: How to raise rights...
- From: Eugene Gershnik
- Re: How to raise rights...
- From: Christian Kaiser
- Re: How to raise rights...
- From: Eugene Gershnik
- Re: How to raise rights...
- From: Christian Kaiser
- How to raise rights...
- Prev by Date: Re: how to read binary data from INI file ?
- Next by Date: Re: how to read binary data from INI file ?
- Previous by thread: Re: How to raise rights...
- Next by thread: Re: How to raise rights...
- Index(es):
Relevant Pages
|