Partager via


2.5.7.2.2 RAP NetPrintQGetInfoResponse

The RAPOutParams structure responds to the NetPrintQGetInfo command as follows.<25>


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

TotalBytesAvailable

TotalBytesAvailable (2 bytes): A 16-bit unsigned integer that represents the number of bytes required to hold the information request for the named print queue.

If the InfoLevel specified in the NetPrintQGetInfoRequest is 0, and the response is not an error, the RAPOutData field of the SMB_COM_TRANSACTION response MUST be filled with a PrintQueue0 structure. For rules on how to initialize the data structures, see section 3.2.5.5.

If the InfoLevel specified in NetPrintQGetInfoRequest is 1, and the response is not an error, the RAPOutData field of the SMB_COM_TRANSACTION response MUST be filled with a PrintQueue1 structure. For rules on how to initialize the data structures, see section 3.2.5.5.

If the InfoLevel specified in NetPrintQGetInfoRequest is 2, and the response is not an error, the RAPOutData field of the SMB_COM_TRANSACTION response MUST be filled with a PrintQueue1 structure. Following the PrintQueue1 structure, the RAPOutData field MUST contain as many PrintJobInfo1 structures as are represented in the PrintJobCount field in the PrintQueue1 structure. For rules on how to initialize the data structures, see section 3.2.5.5.<26>

If the InfoLevel specified in NetPrintQGetInfoRequest is 3, and the response is not an error, the RAPOutData field of the SMB_COM_TRANSACTION response MUST be filled with a PrintQueue3 structure.

If the InfoLevel specified in NetPrintQGetInfoRequest is 4, and the response is not an error, the RAPOutData field of the SMB_COM_TRANSACTION response MUST be filled with a PrintQueue3 structure. Following the PrintQueue3 structure, the RAPOutData field MUST contain as many PrintJobInfo2 structures as are represented in the PrintJobCount field in the PrintQueue3 structure. For rules on how to initialize the data structures, see section 3.2.5.5.

If the InfoLevel specified in the NetPrintQGetInfoRequest is 5, and the response is not an error, the RAPOutData field of the SMB_COM_TRANSACTION response MUST be filled with a PrintQueue5 structure. For rules on how to initialize the data structures, see section 3.2.5.5.