function JwImpersonateLoggedOnUser: IJwImpersonation; overload;
JwImpersonateLoggedOnUser impersonates the current logged on user (on console) and returns an interface pointer to the token. It's automatically freed and reverted to self if it runs out of scope.
This function is intended only for use in services. It impersonates the user working in the active console session and ignores all the other terminal session (like RDP). This function works also on Windows 2000 Workstation.
|
Exceptions |
Description |
|
will be raised it the process does not have SE_TCB_NAME privilege and a try to get the explorer handle failed | |
|
will be raised if OpenProcess fails | |
|
will be raised if SE_TCB_NAME 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!
|