Location: Symbol Reference > Classes > TJwSecureFileObject Class > TJwSecureFileObject Methods > TakeOwnerShip Method > TJwSecureFileObject.TakeOwnerShip Method (TJwSecurityId)
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwSecureFileObject.TakeOwnerShip Method (TJwSecurityId)
Pascal
procedure TakeOwnerShip(SID: TJwSecurityId = nil); virtual; overload;
Parameters 
Description 
SID: TJwSecurityId = nil 
defines the new owner. If nil the current user is used. 

TakeOwnerShip takes the ownership of a file or folder used by this instnace. 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!