|
JWSCL Documentation
|
constructor CreateDuplicateExistingToken(const Token: TJwSecurityToken; const DesiredAccess: TJwAccessMask; UseDuplicateExistingToken: boolean = False); virtual; overload;
|
Parameters |
Description |
|
const Token: TJwSecurityToken |
The token instance to be copied. |
|
const DesiredAccess: TJwAccessMask |
The desired access rights of the new token. It can be MAXIMUM_ALLOWED to get the maximum possible access. |
|
UseDuplicateExistingToken: boolean = False |
For C++ compability only. If you are using C++ and want to use this constructor instead of Create. Set this parameter to true of false. This parameter is ignored! |
CreateDuplicateExistingToken duplicates an existing token. The token will be a primary one. You cannot use the class to adapt an existing token, because the access mask of the token is unkown. (AccessCheck not implemented yet) The token needs the TOKEN_DUPLICATE access type.
New: CreateDuplicateExistingToken creates in every case a second handle. Shared will be set to false so the handle is closed if instance is freed.
|
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!
|