|
JWSCL Documentation
|
constructor Create(const UseWTSCall: Boolean = false); overload;
|
Parameters |
Description |
|
const UseWTSCall: Boolean = false |
Set to true to use Windows Terminal Service API to get the user token; otherwise compability methods are used (useful in Windows 2000 Workstation). |
Create creates a new instance and impersonates the user logged onto the console session (typically 0 in xp and 1 in vista).
This constructor is intended only for use in services. If parameter UseWTSCall is false a compatibility function TJwSecurityToken.CreateCompatibilityQueryUserToken is called that returns the 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)
|
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!
|