2.2.4.31.2 Response

 SMB_Parameters
   {
   UCHAR    WordCount;
   Words
     {
     SMB_DATE            CreateDate;
     SMB_TIME            CreationTime;
     SMB_DATE            LastAccessDate;
     SMB_TIME            LastAccessTime;
     SMB_DATE            LastWriteDate;
     SMB_TIME            LastWriteTime;
     ULONG               FileDataSize;
     ULONG               FileAllocationSize;
     SMB_FILE_ATTRIBUTES FileAttributes;
     }
   }
 SMB_Data
   {
   USHORT ByteCount;
   }
            


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

SMB_Parameters (23 bytes)

...

...

...

SMB_Data

...

SMB_Parameters (23 bytes):


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

WordCount

Words (22 bytes)

...

...

...

WordCount (1 byte): This field MUST be 0x0B.

Words (22 bytes):


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

CreateDate

CreateTime

LastAccessDate

LastAccessTime

LastWriteDate

LastWriteTime

FileDataSize

FileAllocationSize

FileAttributes

CreateDate (2 bytes): This field is the date when the file was created.

CreateTime (2 bytes): This field is the time on CreateDate when the file was created.

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

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

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

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

FileDataSize (4 bytes): This field contains the number of bytes in the file, in bytes. Because this size is limited to 32 bits, this command is inappropriate for files whose size is too large.

FileAllocationSize (4 bytes): This field contains the allocation size of the file, in bytes. Because this size is limited to 32 bits, this command is inappropriate for files whose size is too large.

FileAttributes (2 bytes): This field is a 16-bit unsigned bit field encoding the attributes of the file.

SMB_Data (2 bytes):


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

ByteCount

ByteCount (2 bytes): This field MUST be 0x0000. No data is sent by this message.

Error Codes

SMB error class

SMB error code

NT status code

POSIX equivalent

Description

ERRDOS

(0x01)

ERRnoaccess

(0x0005)

STATUS_ACCESS_DENIED

(0xC0000022)

EPERM

Access denied, no read permission on FID.

ERRDOS

(0x01)

ERRbadfid

(0x0006)

STATUS_INVALID_HANDLE

(0xC0000008)

STATUS_SMB_BAD_FID

(0x00060001)

ENFILE

The FID supplied is not valid.

ERRDOS

(0x01)

ERRnomem

(0x0008)

STATUS_INSUFF_SERVER_RESOURCES

(0xC0000205)

ENOMEM

The server is out of resources.

ERRSRV

(0x02)

ERRerror

(0x0001)

STATUS_INVALID_SMB

(0x00010002)

Invalid SMB. Not enough parameter bytes were sent.

ERRSRV

(0x02)

ERRaccess

(0x0004)

STATUS_NETWORK_ACCESS_DENIED

(0xC00000CA)

EACCESS

A component in the path denied the required permission.

ERRSRV

(0x02)

ERRinvtid

(0x0005)

STATUS_SMB_BAD_TID

(0x00050002)

The TID is no longer valid.

ERRSRV

(0x02)

ERRbaduid

(0x005B)

STATUS_SMB_BAD_UID

(0x005B0002)

The UID supplied is not defined to the session, or the user identified by the UID does not have sufficient privileges.

ERRHRD

(0x03)

ERRdata

(0x0017)

STATUS_DATA_ERROR

(0xC000003E)

EIO

Disk I/O error.