get_job


bool get_job(handle printer,
             unsigned identity,
             unsigned level,
             byte* job,
             unsigned size,
             unsigned* required)

This function obtains print job information.

Parameters

handle printer

The handle of the printer containing the job.

unsigned identity

The identity of the print job for which information is being sought.

unsigned level

The level of print job information - must be 1 or 2.

byte* job

A pointer to a buffer to hold print job information.

Level Data Structure
1 job_information1
2 job_information2

unsigned size

The size (in bytes) of the buffer provided by the previous parameter.

unsigned* required

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.

Return

bool

true The function succeeded.
false The call failed.