Location: Symbol Reference > Functions > JwImpersonateLoggedOnUser Function
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
JwImpersonateLoggedOnUser Function
Pascal
function JwImpersonateLoggedOnUser(const LogonSessionId: ULONG): IJwImpersonation; overload;
Parameters 
Description 
const LogonSessionId: ULONG 
defines the user's logon session id. 

JwImpersonateLoggedOnUser impersonates the current logged on user 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 given session.

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!