|
JWSCL Documentation
|
constructor CreateCompatibilityQueryUserToken(const DesiredAccess: TJwAccessMask; const ProcessName: TJwString = ExplorerProcessName);
|
Parameters |
Description |
|
const DesiredAccess: TJwAccessMask |
defines the desired access to the token |
|
const ProcessName: TJwString = ExplorerProcessName |
defines which process is used to get the token of the user. The name must match exactly but can ignore case sensitivity.) |
CreateCompatibilityQueryUserToken is a compatibility constructor for CreateWTSQueryUserToken which does not work in Windows 2000 (only Terminal Server). It creates a token of the current logged on user.
This constructor seeks a process of the user and gets its token. It only works in the same (terminal) session of the process.
This constructor creates a token from the first explorer.exe it finds. In this way any user explorer process can be returned - not only the console user. To avoid this problem call this constructor using true as parameter. Only apply FALSE if the current system does not support multiple users (like Win2000 Workstation)
This function sets implicitly the TOKEN_DUPLICATE access right.
|
Exceptions |
Description |
|
will be raised if process handle given in parameter ProcessName could not be retrieved. | |
|
will be raised if the process handle of the found process could not be opened | |
|
Several exceptions can be raised by used methods: |
|
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!
|