Export (0) Print
Expand All

2.2.5.2.2 Response

This message MUST be sent by a server to respond to a client TRANS_RAW_READ_NMPIPE Request (section 2.2.5.2.1). The server MUST set an error code in the Status field of the SMB Header (section 2.2.3.1) of the response to indicate whether the read from the named pipe was successful or failed.

Trans_Data
  {
  UCHAR BytesRead[TotalDataCount] (variable);
  }

SMB_Parameters: The SMB_Parameters section contains the relevant fields for the TRANS_RAW_READ_NMPIPE (section 2.2.5.2) subcommand of the SMB_COM_TRANSACTION Response (section 2.2.4.33.2).

WordCount (1 byte): The count of 16-bit words in the response structure. For this response, this MUST be 0x0A, which is 0x0A plus the SetupCount of 0x00.

Words (20 bytes):

TotalParameterCount (2 bytes): This field MUST be set to 0x0000 for this request.

TotalDataCount (2 bytes): This value MUST be the number of bytes read from the named pipe in raw format.

ParameterCount (2 bytes): This field MUST be set to 0x0000 for this request.

ParameterDisplacement (2 bytes): This field MUST be set to 0x0000 for this request.

DataCount (2 bytes): The number of bytes in the Trans_Data buffer contained in this packet. For this response, it MUST be set to less than or equal to the value of the TotalDataCount field.

DataDisplacement (2 bytes): An offset in bytes into the final Trans_Data buffer assembled from all responses. For a single buffer transaction (whose Trans_Data buffer fits in a single response), this value MUST be set to 0x0000.

SetupCount (1 byte): This field MUST be set to 0x00 for this request.


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

Trans_Data (variable)

...

Trans_Data (variable):

The SMB_Data section of the SMB_COM_TRANSACTION Response contains the parameters and data generated by the transaction subcommand.


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

BytesRead (variable)

...

BytesRead (variable): The data buffer that MUST contain the bytes read from the named pipe in raw mode. The size of the buffer MUST be equal to the value in TotalDataCount.

Error Codes

SMB error class

SMB error code

NT status code

POSIX equivalent

Description

ERRDOS

(0x01)

ERRbadfid

(0x0006)

STATUS_INVALID_HANDLE

(0xC0000008L)

STATUS_SMB_BAD_FID

(0x00060001)

EBADF

Invalid FID.

ERRDOS

(0x01)

ERRnomem

(0x0008)

STATUS_INSUFF_SERVER_RESOURCES

(0xC0000205)

ENOMEM

The server is out of resources required to process the request.

ERRSRV

(0x02)

ERRerror

(0x0001)

STATUS_INVALID_SMB

(0x00010002)

 

Invalid SMB. Not enough parameter bytes were sent.

ERRSRV

(0x02)

ERRinvtid

(0x0005)

STATUS_INVALID_HANDLE

(0xC0000008L)

STATUS_SMB_BAD_TID

(0x00050002)

 

The TID is no longer valid.

ERRSRV

(0x02)

ERRbaduid

(0x005B)

STATUS_INVALID_HANDLE

(0xC0000008L)

STATUS_SMB_BAD_UID

(0x005B0002)

 

The UID supplied is not defined to the session.

 
Show:
© 2014 Microsoft