2.2.2.6.1 _JOB_INFO_1

The _JOB_INFO_1 structure specifies print job information. It is a custom-marshaled form of the _JOB_INFO_1 (section 2.2.1.7.1) structure.


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

Fixed_Portion (variable)

...

Variable_Data (variable)

...

Fixed_Portion (variable): An array of one or more groups of fixed-size fields, which are defined 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

JobId

PrinterNameOffset

MachineNameOffset

UserNameOffset

DocumentOffset

DatatypeOffset

StatusOffset

Status

Priority

Position

TotalPages

PagesPrinted

Submitted.wYear

Submitted.wMonth

Submitted.wDayOfWeek

Submitted.wDay

Submitted.wHour

Submitted.wMinute

Submitted.wSecond

Submitted.wMilliseconds

JobId (4 bytes): The identifier of a print job.

PrinterNameOffset (4 bytes): An unsigned integer that specifies the number of bytes from the start of the structure to the start of the PrinterNameArray member.

MachineNameOffset (4 bytes): An unsigned integer that specifies the number of bytes from the start of the structure to the start of the MachineNameArray member.

UserNameOffset (4 bytes): An unsigned integer that specifies the number of bytes from the start of the structure to the start of the UserNameArray member.

DocumentOffset (4 bytes): An unsigned integer that specifies the number of bytes from the start of the structure to the start of the DocumentArray member.

DatatypeOffset (4 bytes): An unsigned integer that specifies the number of bytes from the start of the structure to the start of the DatatypeArray member.

StatusOffset (4 bytes): An unsigned integer that specifies the number of bytes from the start of the structure to the start of the StatusArray member.

Status (4 bytes): The current printer status (section 2.2.3.12).

Priority (4 bytes): The job priority as a decimal number from 0 through 99, inclusive.

Position (4 bytes): The job's position in a queue, where one represents the next job that is printed.

TotalPages (4 bytes): The number of pages a document contains. It can be zero.

PagesPrinted (4 bytes): The number of pages that have been printed. It can be zero.

Submitted (16 bytes): This member is a SYSTEMTIME structure ([MS-DTYP] section 2.3.13) that specifies when a document was spooled. Each field is 2 bytes that contains a WORD sized member in UTC.

Variable_Data (variable): An array of zero or more groups of optional, variable-size fields, which are defined 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

StatusArray (variable)

...

DatatypeArray (variable)

...

DocumentArray (variable)

...

UserNameArray (variable)

...

MachineNameArray (variable)

...

PrinterNameArray (variable)

...

StatusArray (variable): A string that specifies the status of the job. The location of this buffer is determined by the value of the StatusOffset member. 

DatatypeArray (variable): A string that specifies the job’s datatype. The location of this buffer is determined by the value of the DatatypeOffset member.

DocumentArray (variable): A string that specifies the document name. The location of this buffer is determined by the value of the DocumentOffset member.

UserNameArray (variable): A string that specifies the user name of the job. The location of this buffer is determined by the value of the UserNameOffset member.

MachineNameArray (variable): A string that specifies the name of the machine for the job. The location of this buffer is determined by the value of the MachineNameOffset member.

PrinterNameArray (variable): A string that specifies the name of the printer for the job. The location of this buffer is determined by the value of the PrinterNameOffset member.

Fields that are not defined in this section are specified in section 2.2.1.3.3.