Partager via


2.5.7.2.1 RAP NetPrintQGetInfoRequest

The fields in the NetPrintQGetInfoRequest message MUST be set as follows.<23>


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

RAPOpcode

ParamDesc

...

DataDesc (variable)

...

RAPParams (variable)

...

RAPOpcode (2 bytes): MUST be set to 0x0046. For more information see section 2.5.1.

ParamDesc (6 bytes): MUST be set to "zWrLh". For more information see section 2.5.1.

DataDesc (variable): The value of DataDesc MUST be set according to the value of InfoLevel.<24>

DataDesc Value

InfoLevel Value

"B13"

0x0000

"B13BWWWzzzzzWW"

0x0001

"B13BWWWzzzzzWN"

0x0002

"zWWWWzzzzWWzzl"

0x0003

"zWWWWzzzzWNzzl"

0x0004

"z"

0x0005

For more information see section 2.5.1.

RAPParams (variable): The RAPParams structure MUST be as follows.


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

PrintQueueName (variable)

...

InfoLevel

ReceiveBufferSize

AuxDesc (variable)

...

PrintQueueName (variable): A null-terminated ASCII string that specifies the name of the print queue to retrieve.

InfoLevel (2 bytes): A 16-bit unsigned integer that specifies the information level for NetPrintQGetInfoRequest.

ReceiveBufferSize (2 bytes): A 16-bit unsigned integer that represents the maximum number of bytes of data that can be returned in the Data field of the SMB_COM_TRANSACTION response to the command.

AuxDesc (variable): If InfoLevel is set to 0x0002, this MUST be set to "WB21BB16B10zWWzDDz". If InfoLevel is set to 0x0000 or 0x0003, this field MUST NOT be present.