Location: Symbol Reference > Functions > JwCreateProcessAsAdminUser Function
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
JwCreateProcessAsAdminUser Function
Pascal
procedure JwCreateProcessAsAdminUser(const UserName: TJwString; const Domain: TJwString; const Password: TJwString; const InVars: TJwCreateProcessInfo; out OutVars: TJwCreateProcessOut; LogServer: IJwLogServer);
Parameters 
Description 
LogServer: IJwLogServer 
receives a logging instance where log events are logged to. Can be nil if no logging is used 

JwCreateProcessAsAdminUser logs on a user and creates a new process under its logon session. The user will be a member of administrators group for this process but not in the user database. In Vista the linked token will be retrieved which has the administrator group enabled. The user does not have to be an administrator at all!

This procedure needs JwInitWellKnownSIDs to be called. JwCreateProcessAsAdminUser can only run within a SYSTEM account and with TCB privilege available. 

BETA: This function has not been tested thoroughly! 

 

Exceptions 
Description 
will be raised if JwInitWellKnownSIDs was not called before 
will be raised if the TCB privilege is not available 
Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc.
What do you think about this topic? Send feedback!