JOB_INFO_1

typedef struct _JOB_INFO_1 {

DWORD JobId;

LPTSTR pPrinterName;

LPTSTR pMachineName;

LPTSTR pUserName;

LPTSTR pDocument;

LPTSTR pDatatype;

LPTSTR pStatus;

DWORD Status;

DWORD Priority;

DWORD Position;

} JOB_INFO_1, *PJOB_INFO_1, *LPJOB_INFO_1;

This structure describes an abbreviated set of values associated with a Job.

Members

JobId

This value specifies the identification number for the Print Job.

pPrinterName

This value specifies the Printer that this job is spooled to.

pMachineName

This value specifies the machine name that Printed this job.

pUserName

This value specifies the User name that Printed this job.

pDocument

This value specifies the Document Name, (for example, “MS-WORD: Review.doc”)

pDatatype

This value specifies the Datatype of this job.

pStatus

This value specifies a string describing the status of the Job. This value can be NULL.

Status

This value is a bit-field. The following values are valid:

JOB_STATUS_PAUSED JOB_STATUS_ERROR JOB_STATUS_DELETING JOB_STATUS_SPOOLING JOB_STATUS_DELETING JOB_STATUS_SPOOLING JOB_STATUS_PRINTING JOB_STATUS_OFFLINE JOB_STATUS_PAPEROUT JOB_STATUS_PRINTED

Priority

This value specifies the Priority of this job.

Position

This value specifies the position that this job is in the queue.