#include “BlackIceDEVMODE.h”
int ControlJob(LPCTSTR szPrinter, DWORD dwJobID, DWORD dwCommand)
Description
Pauses, resumes or deletes a given print job.
Parameters
LPCTSTR szPrinter - the name of the printer to query
DWORD dwJobID - the ID of the Job to be paused, resumed or deleted. The job is a unique identifier for the job and it is different from the Job’s order number. To retrieve the JobID use the GetJobInfo function.
DWORD dwCommand - the command to be executed. It can be one of the following values:
Defined command name |
Value |
JOB_CONTROL_PAUSE |
1 |
JOB_CONTROL_RESUME |
2 |
JOB_CONTROL_RESTART |
4 |
JOB_CONTROL_DELETE |
5 |
Return value
0 on success, GetLastError() errorcode otherwise.
Programming Notes
None
Code Example
None