2.2.8.3.1 SMB_INFO_STANDARD

This information level structure is used in TRANS2_QUERY_PATH_INFORMATION (section 2.2.6.6) and TRANS2_QUERY_FILE_INFORMATION (section 2.2.6.8) responses to return the following information for the file specified in the request:

  • Creation, access, and last write timestamps

  • File size

  • File attributes

     SMB_INFO_STANDARD
       {
       SMB_DATE            CreationDate;
       SMB_TIME            CreationTime;
       SMB_DATE            LastAccessDate;
       SMB_TIME            LastAccessTime;
       SMB_DATE            LastWriteDate;
       SMB_TIME            LastWriteTime;
       ULONG               FileDataSize;
       ULONG               AllocationSize;
       SMB_FILE_ATTRIBUTES Attributes;
       }
      
    

CreationDate: (2 bytes): This field contains the date when the file was created.

CreationTime: (2 bytes): This field contains the time when the file was created.

LastAccessDate: (2 bytes): This field contains the date when the file was last accessed.

LastAccessTime: (2 bytes): This field contains the time when the file was last accessed.

LastWriteDate: (2 bytes): This field contains the date when data was last written to the file.

LastWriteTime: (2 bytes): This field contains the time when data was last written to the file.

FileDataSize: (4 bytes): This field contains the file size, in filesystem allocation units.

AllocationSize: (4 bytes): This field contains the size of the filesystem allocation unit, in bytes.

Attributes: (2 bytes): This field contains the file attributes.