zGetEffectiveRights

Returns the effective rights (inherited or explicit) an eDirectory object has to a given file or directory.

Service:File System Services (64-Bit)
Version:OES 2

Syntax

#include <zPublics.h>

STATUS zGetEffectiveRights(
   Key_t    key,
   GUID_t   objId,
   NINT    *effectiveRights);

Parameters

key

(IN) Specifies the file or directory to which effective rights are to be returned, as created by zOpen or zCreate.

objId

(IN) Specifies the eDirectory object for which the effective rights are returned.

NOTE:This object ID is the value of the GUID eDirectory property for the object for which the effective rights are to be returned. This value is not the same ID that is used by traditional file system functions that return an object's effective rights.

effectiveRights

(OUT) Returns the effective rights for the specified object.

Return Values

zOK

The operation completed successfully.

non-0

An error occurred (see Section 4.1, Return Values for a description).

See Also

zAddTrustee, zCreate, zDeleteTrustee, zGetTrustee, zOpen