Location: Symbol Reference > Classes > TJwServerAccessControl Class > TJwServerAccessControl Methods > TJwServerAccessControl.JwGetAllAccessRights Method
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwServerAccessControl.JwGetAllAccessRights Method
Pascal
procedure JwGetAllAccessRights(const AProperty: TJwString; out AccessList: TJwDAccessControlList; out Owner: TJwSecurityID; out Group: TJwSecurityID); virtual;
Parameters 
Description 
const AProperty: TJwString 
This parameter is currently not used and must be an empty string. 
out AccessList: TJwDAccessControlList 
Returns an TJwDAccessControl instance that contains the DACL of the security descriptor. 
out Owner: TJwSecurityID 
Returns the owner of the security descriptor. 
out Group: TJwSecurityID 
Returns the group of the security descriptor. All returned instances must be freed by the caller. 

JwGetAllAccessRights returns a copy of the DACL, owner and group of the security descriptor. The return values are compatible with MS IAccessControl.

The function is called by the interface method with the same name. Since the interface method returns a HRESULT value this version must raise an EOleSysError and supply the return value to EOleSysError constructor (ErrorCode). Use

  raise EOleSysError.Create('text message', MAKE_HRESULT(1, FacilityCode, Win32_or_User_Code));

 

Use CoTaskMemFree to free these values.

  CoTaskMemFree(AccessList)

This method implements the JWSCL version of the COM method with the same name.

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!