NXDirAttrWin_t

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

Service:File and Directory

Structure

  #include <nks/doswin.h>
  
  typedef struct 
  {
     NXDeHeader_t    xdeHeader;
     NXFid_t         xdeFid;
     uint32_t        xdeEffectiveRights;
     unsigned long   xdeFileAttributes;
     uint64_t        xdeCreateTime; 
     uint64_t        xdeLastAccessTime;
     uint64_t        xdeLastWriteTime; 
     uint64_t        xdeLastChangeTime;
     uint64_t        xdeFileSize;
     uint32_t        Reserved0;
     uint32_t        Reserved1;
     uint32_t        Reserved2;
     uint32_t        Reserved3;
     unsigned long   xdeNumberOfLinks;
     uint32_t        xdeVolumeSerialNumber;
     uint32_t        Reserved4;
     uint32_t        Reserved5;
     uint64_t        xdeFileIndex;
     uint64_t        Reserved6;
     unsigned long   xdeAllocationSize;/
     unsigned long   xdeAccessFlags;
     unsigned long   xdeMiscFlags;    
     uint32_t        Reserved7;
     uint64_t        xdeEaSize; 
     uint64_t        xdeCompressedFileSize;/
     unsigned short  xdeCompressionFormat;
     uint16_t        Reserved8;
     uint32_t        Reserved9;
     uint64_t        Reserved10;
  } NXDirAttrWin_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.

xdeFileAttributes

Contains a bit mask of the following:

  • 0x00000001 FILE_ATTRIBUTE_READONLY
  • 0x00000002 FILE_ATTRIBUTE_HIDDEN
  • 0x00000004 FILE_ATTRIBUTE_SYSTEM
  • 0x00000010 FILE_ATTRIBUTE_DIRECTORY
  • 0x00000020 FILE_ATTRIBUTE_ARCHIVE
  • 0x00000040 FILE_ATTRIBUTE_ENCRYPTED
  • 0x00000080 FILE_ATTRIBUTE_NORMAL
  • 0x00000100 FILE_ATTRIBUTE_TEMPORARY
  • 0x00000200 FILE_ATTRIBUTE_SPARSE_FILE
  • 0x00000400 FILE_ATTRIBUTE_REPARSE_POINT
  • 0x00000800 FILE_ATTRIBUTE_COMPRESSED
  • 0x00001000 FILE_ATTRIBUTE_OFFLINE
  • 0x00002000 FILE_ATTRIBUTE_NOT_CONTENT_INDEXED
xdeCreateTime

Specifies the date and time of creation or -1.

xdeLastAccessTime

Specifies the date and time of the last access (in seconds since January 1970?).

xdeLastWriteTime

Specifies the date and time of the last modification (in seconds since January 1970?).

xdeLastChangeTime

Specifies the date and time of the last attribute modification (in seconds since January 1970?).

xdeFileSize

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

Reserved0

Reserved.

Reserved1

Reserved.

Reserved2

Reserved.

Reserved3

Reserved.

xdeNumberOfLinks

Specifies the number of links. Always 1 on Windows file systems.

xdeVolumeSerialNumber

Reserved4

Reserved.

Reserved5

Reserved.

xdeFileIndex

Specifies a unique identifier for the file.

Reserved6

Reserved.

xdeAllocationSize

Specifies the file system block size.

xdeAccessFlags

xdeMiscFlags

Reserved7

Reserved.

xdeEaSize

Specifies the total size of extended attributes.

xdeCompressedFileSize

Specifies the size, in bytes, of the compressed file.

xdeCompressionFormat

Specifies the format of the compression.

Reserved8

Reserved.

Reserved9

Reserved.

Reserved10

Reserved.