Location: Symbol Reference > Classes > TJwServerAccessControl Class > TJwServerAccessControl Methods > TJwServerAccessControl.GrantAccessRights Method
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwServerAccessControl.GrantAccessRights Method
Pascal
function GrantAccessRights(pAccessList: PACTRL_ACCESSW): HRESULT; stdcall;
Parameters 
Description 
pAccessList: PACTRL_ACCESSW 
Receives a list of access rights to be granted in addition.

If StrictACLVerify is true the parameter pAccessList will be validated much more strict so it passes the implementation of IAccessControl. 

This method can return several, among others, these error codes:

Value 
Description 
S_OK 
Successfully completed. Parameter cbSize contains the size. 
E_INVALIDARG 
  • Parameter pAccessList is nil
  • pAccessList.pPropertyAccessList is nil

This error is not returned in case of StrictACLVerify is true. 
MAKE_HRESULT(1, FacilityCode, ERROR_INVALID_PARAMETER) 
This error is only returned if property StrictACLVerify is true.
  • Parameter pAccessList is nil
  • pAccessList.pPropertyAccessList is nil
  • pAccessList.cEntries is zero (0)
  • pAccessList.pPropertyAccessList.lpProperty
 
E_UNEXPECTED 
An exception occured that is not an EOleSysError exception. 
others 
There can be other errors coming from a EOleSysError. The value is the same as the value of the member ErrorCode of EOleSysError. 

 

This method behaves differently in a debug or release build. In a debug build an exception is returned to the caller. This can be useful in a debugging session.

The method GrantAccessRights grants additional access rights to the DACL of the security descriptor.

This method implements GrantAccessRights of IAccessControl. 

 

This method sets the dirty flag (property Dirty) to true in case of success.

This method is affected by property StrictACLVerify when set to True. 

Return values: E_INVALIDARG : pAccessList = nil

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!