|
JWSCL Documentation
|
class procedure TakeOwnerShip(const Handle: THandle; SID: TJwSecurityId = nil); virtual; overload;
|
Parameters |
Description |
|
const Handle: THandle |
Defines a handle to the file or folder which owner is to be changed |
|
SID: TJwSecurityId = nil |
defines the new owner. If nil the current user is used. |
TakeOwnerShip takes the ownership of a file or folder. If the current has the SE_TAKE_OWNERSHIP_NAME available it is made active automatically. The owner is set to to current owner or given SID. To set the owner to an arbitrary one the caller must enable SE_RESTORE_PRIVILEGE. The function doesnt do it.
|
Exceptions |
Description |
|
See SetNamedSecurityInfo for more exception |
|
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!
|