2.2.2.6.2 _JOB_INFO_2
The _JOB_INFO_2 structure specifies print job information. It is a custom-marshaled form of the JOB_INFO_2 (section 2.2.1.7.2) structure.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
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
91
0
1
2
3
4
5
6
7
8
92
0
1
2
3
4
5
6
7
8
93
0
1JobId
PrinterNameOffset
MachineNameOffset
UserNameOffset
DocumentOffset
NotifyNameOffset
DatatypeOffset
PrintProcessorOffset
ParametersOffset
DriverNameOffset
DevModeOffset
StatusOffset
SecurityDescriptorOffset
Status
Priority
Position
StartTime
UntilTime
TotalPages
Size
Submitted.wYear
Submitted.wMonth
Submitted.wDayOfWeek
Submitted.wDay
Submitted.wHour
Submitted.wMinute
Submitted.wSecond
Submitted.wMilliseconds
Time
PagesPrinted
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.
NotifyNameOffset (4 bytes): An unsigned integer that specifies the number of bytes from the start of the structure to the start of the NotifyNameArray 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.
PrintProcessorOffset (4 bytes): An unsigned integer that specifies the number of bytes from the start of the structure to the start of the PrintProcessorArray member.
ParametersOffset (4 bytes): An unsigned integer that specifies the number of bytes from the start of the structure to the start of the ParametersArray member.
DriverNameOffset (4 bytes): An unsigned integer that specifies the number of bytes from the start of the structure to the start of the DriverNameArray member.
DevModeOffset (4 bytes): An unsigned integer that specifies the number of bytes from the start of the structure to the start of the DevModeArray 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.
SecurityDescriptorOffset (4 bytes): An unsigned integer that specifies the number of bytes from the start of the structure to the start of the SecurityDescriptorArray member.
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
91
0
1
2
3
4
5
6
7
8
92
0
1
2
3
4
5
6
7
8
93
0
1SecurityDescriptorArray (variable)
...
StatusArray (variable)
...
DevModeArray (variable)
...
DriverNameArray (variable)
...
ParametersArray (variable)
...
PrintProcessorArray (variable)
...
DatatypeArray (variable)
...
NotifyNameArray (variable)
...
DocumentArray (variable)
...
UserNameArray (variable)
...
MachineNameArray (variable)
...
PrinterNameArray (variable)
...
-
SecurityDescriptorArray (variable): A SECURITY_DESCRIPTOR struct that specifies the security information of the job. The location of this buffer is determined by the value of the SecurityDescriptorOffset member.
-
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.
-
DevModeArray (variable): A DevMode struct that specifies the DevMode information for the job. The location of this buffer is determined by the value of the DevModeOffset member.
-
DriverNameArray (variable): A string that specifies the name of the driver for the job. The location of this buffer is determined by the value of the DriverNameOffset member.
-
ParametersArray (variable): A string that specifies the parameters of the job. The location of this buffer is determined by the value of the ParametersOffset member.
-
PrintProcessorArray (variable): A string that specifies the print processor for the job. The location of this buffer is determined by the value of the PrintProcessorOffset 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.
-
NotifyNameArray (variable): A string that specifies the notification name of the job. The location of this buffer is determined by the value of the NotifyNameOffset 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.