NW_FILE_INFO2

Holds file information

Service:File System
Defined In:nwfile.h

Structure

   typedef struct { 
      nuint8    fileAttributes ; 
      nuint8    extendedFileAttributes ; 
      nuint32   fileSize ; 
      nuint16   creationDate ; 
      nuint16   lastAccessDate ; 
      nuint32   lastUpdateDateAndTime ; 
      nuint32   fileOwnerID ; 
      nuint32   lastArchiveDateAndTime ; 
      nstr8     fileName [260]; 
   } NW_FILE_INFO2;
   

Delphi Structure

   uses calwin32 
    
   NW_FILE_INFO2 = packed Record 
       fileAttributes : nuint8; 
       extendedFileAttributes : nuint8; 
       fileSize : nuint32; 
       creationDate : nuint16; 
       lastAccessDate : nuint16; 
       lastUpdateDateAndTime : nuint32; 
       fileOwnerID : nuint32; 
       lastArchiveDateAndTime : nuint32; 
       fileName : Array[0..259] Of nstr8 
     End;
   

Fields

fileAttributes

Specifies the file attributes (for values, see Remarks).

extendedFileAttributes

Specifies the file extended attributes (for values, see Remarks).

fileSize

Specifies the size of the file.

creationDate

Specifies when the file was created.

lastAccessDate

Specifies when the file was last accessed.

lastUpdateDateAndTime

Specifies when the file was last updated.

fileOwnerID

Specifies the object ID of the owner.

lastArchiveDateAndTime

Specifies when the file was last archived.

fileName

Specifies the name of the file (long names are supported).

Remarks

The fileAttributes field can have the following values:

C Value

Delphi Value

Value Name

0x00

$00

FA_NORMAL

0x01

$01

FA_READ_ONLY

0x02

$02

FA_HIDDEN

0x04

$04

FA_SYSTEM

0x08

$08

FA_EXECUTE_ONLY

0x10

$10

FA_DIRECTORY

0x20

$20

FA_NEEDS_ARCHIVED

0x80

$80

FA_SHAREABLE

The extendedFileAttributes field can have the following values:

C Value

Delphi Value

Value Name

0x10

$10

FA_TRANSACTIONAL

0x20

$20

FA_INDEXED

0x40

$40

FA_READ_AUDIT

0x80

$80

FA_WRITE_AUDIT