2.5.7.1.2 RAP NetPrintQEnumResponse

The RAPOutParams structure for the NetPrintQEnumResponse is as follows.<20>


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

EntriesReturned

EntriesAvailable

EntriesReturned (2 bytes): A 16-bit unsigned integer that represents the number of fixed-size PrintQueue data structures (such as PrintQueue1 or PrintQueue5) returned in the Data field of the SMB_COM_TRANSACTION response to NetPrintQEnumRequest.

EntriesAvailable (2 bytes): A 16-bit unsigned integer that represents the number of print queues that are available on the server.

For error conditions and error responses, see section 3.2.5.4.

If the InfoLevel specified in the NetPrintQEnumRequest is 0, and the response is not an error, the RAPOutData field of the SMB_COM_TRANSACTION response MUST be filled with an array of PrintQueue0 structures of length EntriesReturned. For rules on how to initialize the data structures, see section 3.2.5.4.

If the InfoLevel specified in NetPrintQEnumRequest is 1, and the response is not an error, the RAPOutData field of the SMB_COM_TRANSACTION response SHOULD be filled with an array of EntriesReturned PrintQueue1 data structures. For rules on how to initialize the data structures, see section 3.2.5.4.<21>

If the InfoLevel specified in NetPrintQEnumRequest is 2, and the response is not an error, the NetPrintQEnumRequest field of the SMB_COM_TRANSACTION response MUST be filled with an array of EntriesReturned PrintQueue1 data structures. Following each 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.4.<22>

If the InfoLevel specified in NetPrintQEnumRequest is 3, and the response is not an error, the RAPOutData field of the SMB_COM_TRANSACTION response MUST be filled with an array of EntriesReturned PrintQueue3 data structures.

If the InfoLevel specified in NetPrintQEnumRequest is 4, and the response is not an error, the RAPOutData field of the SMB_COM_TRANSACTION response MUST be filled with an array of EntriesReturned PrintQueue3 data structures. Following each 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.4.

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