|
JWSCL Documentation
|
function SetOwner(pOwner: PTRUSTEEW; pGroup: PTRUSTEEW): HRESULT; stdcall;
|
Parameters |
Description |
|
pOwner: PTRUSTEEW |
Receives a pointer to a TRUSTEEW structure that will replace the existing owner. Can be nil if pGroup is not nil. |
|
pGroup: PTRUSTEEW |
Receives a pointer to a TRUSTEEW structure that will replace the existing group. Can be nil if pOwner is not nil. |
This method can return several, among others, these error codes:
|
Value |
Description |
|
S_OK |
Successfully completed. Parameter cbSize contains the size. |
|
E_INVALIDARG |
Both parameters pOwner and pGroup are nil at the same time. |
|
MAKE_HRESULT(1, FacilityCode, ERROR_INVALID_PARAMETER) |
Either pOwner or pGroup is not a valid trustee. See method IsValidTrustee for more information. |
|
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.
This method is affected by property StrictACLVerify when set to True.
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.
|
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!
|