function JwProcessIdToSessionId(const ProcessID: TJwProcessId): TJwSessionId;
|
Parameters |
Description |
|
const ProcessID: TJwProcessId |
defines the process ID. Can be zero or -1 to use current process. |
Returns the session ID (zero based).
JwProcessIdToSessionId returns the session ID of a process. This function uses the new API of Vista or otherwise calls just JwGetProcessSessionID. It ist faster because it does not create an object if run on Vista or newer.
If you want to use the WinAPI function ProcessIdToSessionId and you also use JWSCL you should consider this function instead. It works on all Windows NT versions (>=2000).
|
Exceptions |
Description |
|
Is raised if ProcessIdToSessionId fails. | |
|
See JwGetProcessSessionID for more information. |
|
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!
|