|
JWSCL Documentation
|
constructor CreateWTSQueryUserTokenEx(const Server: TObject; SessionID: cardinal); virtual; overload;
|
Parameters |
Description |
|
const Server: TObject |
defines the Terminal Server where this function will be processed. Use nil to use current server. This parameter receives an instance of a TJwTerminalServer object or derivat. |
|
SessionID: cardinal |
defines the session which is used to obtain the token. If set to INVALID_HANDLE_VALUE, the function does the following steps :
If it fails an exception is raised. |
CreateWTSQueryUserTokenEx opens a token of a logged on user on a local or remote server.
This constructor can be used in Windows 2000 Terminal Server in contrary to CreateWTSQueryUserToken.
|
Exceptions |
Description |
|
EInvalidCast |
This exception will be raised if a given instance to parameter Server is not a TJwTerminalServer object or a derivat. |
|
will be raised if the no terminal service is running | |
|
will be raised if the process token is not a SYSTEM user token | |
|
will be raised if the privilege SE_TCB_NAME is not available | |
|
will be raised if a call to WinStationQueryUserToken failed |
|
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!
|