Re: CreateProcessAsUser error "the client does not have the required priviledges"
From: Yu Chen [MS] (yuchen_at_online.microsoft.com)
Date: 07/20/04
- Next message: Yu Chen [MS]: "Re: CreateProcessAsUser error "the client does not have the required priviledges""
- Previous message: Ryan Menezes [MSFT]: "Re: retrieving dwFlags used in CryptGenKey"
- In reply to: Victor Pereira: "Re: CreateProcessAsUser error "the client does not have the required priviledges""
- Next in thread: Victor Pereira: "Re: CreateProcessAsUser error "the client does not have the required priviledges""
- Reply: Victor Pereira: "Re: CreateProcessAsUser error "the client does not have the required priviledges""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 19 Jul 2004 17:20:48 -0700
I don't know how to automate the logon and logoff. The impersonation
approach won't work as the API is checking the primary process token.
As I said in the other reply, the easier solution is to use the
CreateProcessWithLogonW API.
-- Yu Chen [MS] This posting is provided "AS IS" with no warranties, and confers no rights. "Victor Pereira" <taintmode@yahoo.com.br> wrote in message news:ueHvs3YbEHA.384@TK2MSFTNGP10.phx.gbl... > Yu Chen [MS] wrote: > > After you grant a certain privilege to an account, you need to log off and > > log back for it to take effect. > > > How can i programatically do the log of and logon ? In a program like > this, should i write a program to adjust the permission, logout and then > i run the program to do the Impersonate ? > > Thanks, > > VP
- Next message: Yu Chen [MS]: "Re: CreateProcessAsUser error "the client does not have the required priviledges""
- Previous message: Ryan Menezes [MSFT]: "Re: retrieving dwFlags used in CryptGenKey"
- In reply to: Victor Pereira: "Re: CreateProcessAsUser error "the client does not have the required priviledges""
- Next in thread: Victor Pereira: "Re: CreateProcessAsUser error "the client does not have the required priviledges""
- Reply: Victor Pereira: "Re: CreateProcessAsUser error "the client does not have the required priviledges""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|