Export (0) Print
Expand All

2.2.6.9.1 Request

The TRANS2_SET_FILE_INFORMATION (section 2.2.6.9) request and response formats are special cases of SMB_COM_TRANSACTION2 (section 2.2.4.46)SMB. Only the TRANS2_SET_FILE_INFORMATION specifics are described here.

SMB_Parameters:

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

Words (30 bytes):

TotalDataCount (2 bytes): This field MUST be 0x0000.

SetupCount (1 byte): This field MUST be 0x01.

Setup (2 bytes): This field MUST be TRANS2_SET_FILE_INFORMATION (0x0008).

Trans2_Parameters:

Trans2_Parameters
  {
  USHORT FID;
  USHORT InformationLevel;
  USHORT Reserved;
  }


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

FID

InformationLevel

Reserved

Trans2_Data (variable)

...

FID (2 bytes): This field MUST contain a valid FID returned from a previously successful SMB open command.

InformationLevel (2 bytes): This field determines the information contained in the response. See TRANS2_SET_PATH_INFORMATION (section 2.2.6.7) for complete details.

Reserved (2 bytes): MUST be set to zero when sent and MUST be ignored on receipt.

Trans2_Data (variable): The Trans2_Data block carries the structure of the information level specified by the Trans2_Parameters.InformationLevel field. Each information level's corresponding structure is specified in section 2.2.8.4.

 
Show:
© 2015 Microsoft