|
JWSCL Documentation
|
constructor CreateTokenByThread(const aThreadHandle: TJwThreadHandle; const aDesiredAccess: TJwAccessMask; const anOpenAsSelf: boolean); virtual;
|
Parameters |
Description |
|
const aThreadHandle: TJwThreadHandle |
Receives a thread handle which is used to get the process token. The handle can be zero (0) to use the current process handle of the caller |
|
const aDesiredAccess: TJwAccessMask |
Receives the desired access for this token. The access types can be get from the following list. Access flags must be concatenated with or operator. If you want to use DuplicateToken or creating an impersonated token (by ConvertToImpersonatedToken) you must specific TOKEN_DUPLICATE. See CreateTokenByProcess for a list of access rights. |
|
const anOpenAsSelf: boolean |
Indicates whether the access check is to be made against the security context of the thread calling the CreateTokenByThread function or against the security context of the process for the calling thread |
CreateTokenByThread creates a new class instance and opens a thread token if available; otherwise it fails.
|
Exceptions |
Description |
|
will be raised if you try to call CreateTokenByThread in a process rather than thread | |
|
will be raised if the threak token could not be opened |
|
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!
|