2.5.7.8.6 PrintJobInfo1 Data Structure

The PrintJobInfo1 packet is used by the NetPrintJobGetInfo Command.


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

JobID

UserName (21 bytes)

...

...

...

Pad

NotifyName (16 bytes)

...

...

DataType

...

...

PrintParameterStringLow

PrintParameterStringHigh

JobPosition

JobStatus

JobStatusStringLow

JobStatusStringHigh

TimeSubmitted

...

JobSize

...

JobCommentStringLow

JobCommentStringHigh

JobID (2 bytes): A 16-bit unsigned integer that represents the job ID of the print job.

UserName (21 bytes): Null-terminated ASCII text that contains the name of the user that submitted the job. This field MUST be padded with null characters to 21 bytes in length.

Pad (1 byte): A byte. Can be set to any arbitrary value when sent and MUST be ignored on receipt.

NotifyName (16 bytes): A null-terminated ASCII string that contains the UserName that must be notified when this print job completes. This field MUST be padded with null characters to 16 bytes in length.

DataType (10 bytes): A null-terminated ASCII string that contains the name of a data type. It MUST uniquely identify a format for print data that is supported by a print processor. This field MUST be padded with null characters to 10 bytes in length.

PrintParameterStringLow (2 bytes): A 16-bit unsigned integer that represents the offset, in bytes, from the start of the response to a null-terminated ASCII string that is allocated in the response block (as specified in section 2.5.11) and that specifies the parameters for this print job. Before using this value, the Remote Administration Protocol client MUST subtract the Converter field, as specified in section 2.5.2, from the PrintParametersStringLow value and then use that result as the offset within the response.

PrintParameterStringHigh (2 bytes): Unused. Can be set to any arbitrary value when sent and MUST be ignored on receipt.

JobPosition (2 bytes): A 16-bit unsigned integer that specifies the position of this job in the queue. A value of 0x0001 indicates that this job is the next job to print.

JobStatus (2 bytes): A 16-bit unsigned integer that specifies the status of this job in the print queue. JobStatus MUST be one of the values in the following table.

Value

Meaning

PRJ_QS_QUEUED

0x0000

Job is in the queue.

PRJ_QS_PAUSED

0x0001

Job is in the queue but paused.

PRJ_QS_SPOOLING

0x0002

Job is being written to the spooler queue.

PRJ_QS_PRINTING

0x0003

Job is being printed.

PRJ_QS_ERROR

0x0010

Job is in the error state. It MUST be used with one of the following status bits: PRJ_QS_QUEUED, PRJ_QS_PAUSED, PRJ_QS_SPOOLING, or PRJ_QS_PRINTING.

JobStatusStringLow (2 bytes): A 16-bit unsigned integer that represents the offset, in bytes, from the start of the response to a null-terminated ASCII string that is allocated in the response block (as specified in section 2.5.11) and that describes the status of this print job. Before using this value, the Remote Administration Protocol client MUST subtract the Converter field, as specified in section 2.5.2, from the JobStatusStringLow value and then use that result as the offset within the response.

JobStatusStringHigh (2 bytes): Unused. Can be set to any arbitrary value when sent and MUST be ignored on receipt.

TimeSubmitted (4 bytes): A 32-bit unsigned integer that specifies the time that the print job was submitted (in seconds since midnight January 1, 1970) in the local time zone of the server.

JobSize (4 bytes): A 32-bit unsigned integer that specifies the size of the print job, in bytes.

JobCommentStringLow (2 bytes): A 16-bit unsigned integer that represents the offset, in bytes, from the start of the response to a null-terminated ASCII string that is allocated in the response block (as specified in section 2.5.11) and that describes this print job. Before using this value, the Remote Administration Protocol client MUST subtract the Converter field, as specified in section 2.5.2, from the JobCommentStringLow value and then use that result as the offset within the response.

JobCommentStringHigh (2 bytes): Unused. Can be set to any arbitrary value when sent and MUST be ignored on receipt.