zNW_metadata2_s

Beginning with OES 2015, the zNW_metadata2_s Xattr structure has been added XAttr NDK to support both Active Directory and eDirectory identities.

Defined In:public/zXattr.h

Syntax

typedef struct zNW_metadata2_s {
    WORD  nwm_byteorder;
    WORD  nwm_version;
    WORD   nwm_trustee_more;
    WORD  nwm_reserved_1;
    QUAD  nwm_modify_mask;
    QUAD  nwm_file_attributes;
    QUAD  nwm_file_attributes_mask;

    QUAD  nwm_time_created;
    QUAD  nwm_time_archived;
    QUAD  nwm_time_modified;
    QUAD  nwm_time_accessed;

    QUAD  nwm_time_meta_data_modified;
    QUAD  nwm_reserved_2;

    zNW_user_s nwm_id_owner;
    zNW_user_s nwm_id_archiver;
    zNW_user_s nwm_id_modifier;
    zNW_user_s nwm_id_metadata_modifier;

    SQUAD  nwm_quota_limit;
    LONG  nwm_inherited_rights_mask;
    LONG  nwm_trustee_num;

    zNW_trustee2_s nwm_trustee[zMAX_TRUSTEES2];
} zNW_metadata2_s;

Fields

nwm_byteorder

Specifies the byte order of the structure.

nwm_version

Specifies the version of the structure.

nwm_trustee_more

This is reserved for future use, and it can be ignored for now.

nwm_reserved_1

Is reserved. Set to 0.

nwm_modify_mask

Specifies the attributes (and corresponding fields in this structure) to modify. For possible values, see Section 4.2, Modify Mask Values.

nwm_file_attributes

Specifies the NSS file attributes. For possible values, see Section 4.1, File Attribute Values.

nwm_file_attributes_mask

Specifies the NSS file attributes to modify.

nwm_time_created

Specifies the UTC time when the file was created.

nwm_time_archived

Specifies the UTC time when the file was last archived.

nwm_time_modified

Specifies the UTC time when the file was last modified.

nwm_time_accessed

Is no longer used. Currently, it is set to zero and nwm_modify_mask clears the zMOD_ACCESSED_TIME bit.

nwm_time_meta_data_modified

Specifies the UTC time when the file’s metadata was last modified.

nwm_reserved_2

Is reserved. Set to 0.

nwm_id_owner

Specifies the ID of the person who currently owns the file.

nwm_id_archiver

Specifies the ID of the person who last archived the file.

nwm_id_modifier

Specifies the ID of the person who last modified the file.

nwm_id_metadata_modifier

Specifies the ID of the person who last modified the file’s metadata.

nwm_quota_limit

Specifies the quota limit that is currently assigned to the file.

nwm_inherited_rights_mask

Specifies the inherited rights to return for the file.

nwm_trustee_num

Specifies the number of the file’s trustee.

nwm_trustee[zMAX_TRUSTEES2]

Points to the zNW_trustee2_s structure, which contains trustee rights and ID information.

Remarks

zMAX_TRUSTEES2 is defined as 740 that signifies the number of trustees that can be accommodated in the zNW_metadata2_s structure.

#define zMAX_TRUSTEES2 740