|
JWSCL Documentation
|
function SetAccessRights(pAccessList: PACTRL_ACCESSW): HRESULT; stdcall;
|
Parameters |
Description |
|
AccessList |
Receives a pointer to a PACTRL_ACCESSW array. |
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 :
|
|
MAKE_HRESULT(1, FacilityCode, ERROR_INVALID_PARAMETER) |
This error is only returned if property StrictACLVerify is true. See Conditions section. |
|
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.
Replaces the DACL of the security descriptor with the given access list.
This method is affected by property StrictACLVerify when set to True. On the other hand if StrictACLVerify is false the function can produce incompatible results to IAccessControl.
This method implements the JWSCL version of the COM method with the same name.
The following conditions must be met to allow AccessList to be passed when StrictACLVerify is true:
(pAccessList <> nil)
(pAccessList.pPropertyAccessList <> nil)
(pAccessList.cEntries <> 0)
(pAccessList.pPropertyAccessList.lpProperty = nil)
(pAccessList.pPropertyAccessList.fListFlags = 0)
|
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!
|