NXDirAttrDos_t

Contains attribute information about a DOS directory or file and is used when the level of information is set to NX_DELEVEL_EXTENDED and the name space is NX_PNF_DOS.

Service:File and Directory

Structure

  #include <nks/doswin.h>
  
  typedef struct 
  {
     NXDeHeader_t   xdeHeader;
     NXFid_t        xdeFid;
     uint32_t       xdeEffectiveRights;
     unsigned int   xdeAttr;
     uint16_t       xdeCrtDate;
     uint16_t       xdeCrtTime;
     uint16_t       xdeCrtTimeTenth;
     uint16_t       xdeLastAccDate;
     uint16_t       xdeWrtDate;
     uint16_t       xdeWrtTime;
     uint32_t       xdeFileSize;
     uint32_t       Reserved1;
     uint32_t       Reserved2;
  } NXDirAttrDos_t;
  

Fields

xdeHeader

Specifies an embedded structure of type NXDeHeader_t, which specifies the pathname format and the object's type.

xdeFid

Specifies a globally/locally-scoped unique identifier for the object that is named in this entry. You should not try to interpret the fields of this structure but you can use it to pass to other NKS interfaces. This field is not currently supported on NetWare file systems.

xdeEffectiveRights

Specifies how the entry may be accessed. These are the caller's effective access rights on the object. For possible values in this bit mask, see Effective Rights Flags.

xdeAttr

Contains a bit mask of attributes. For possible values in this bit mask, see Section 20.3.5, NetWare Attributes.

xdeCrtDate

Specifies the date the entry was created, in seconds since January 1, 1970.

xdeCrtTime

Specifies, in seconds, the time the entry was created.

xdeCrtTimeTenth

Specifies, in tenths of a second, the time the entry was created.

xdeLastAccDate

Specifies the date the entry was last accessed, in seconds since January 1, 1970. This will be either the creation date or the write date. There is no time associated with this value.

xdeWrtDate

Specifies the date the entry was last written to, in seconds since January 1, 1970. Entry creation is considered a write.

xdeWrtTime

Specifies the time, in seconds, the entry was last written to. Entry creation is considered a write.

xdeFileSize

Specifies the length in bytes of the data contained in the file. This field is only valid for file entries.

Reserved1

Reserved.

Reserved2

Reserved.

Remarks

Dates and times are returned in UTC. If you need DOS formatted dates and time, use the calendar2dos function.