bool get_job(handle printer, unsigned identity, unsigned level, byte* job, unsigned size, unsigned* required)
This function obtains print job information.
The handle of the printer containing the job.
The identity of the print job for which information is being sought.
The level of print job information - must be 1 or 2.
A pointer to a buffer to hold print job information.
The size (in bytes) of the buffer provided by the previous parameter.
A pointer to a variable that is updated to hold the number of bytes transferred to the buffer when the query succeeds. When the information cannot be returned because of insufficient buffer size, the buffer size required for the query to be successfull is returned.
|The function succeeded.
|The call failed.