ScheduleJob

BOOL ScheduleJob(
  HANDLE hPrinter,   /* handle of printer object   */
  DWORD  dwJobID     /* job-identifier value       */
);
 

Informs the print spooler that the specified job can be scheduled for printing.

hPrinter Identifies the printer for which the job is scheduled.
dwJobID Specifies the print job being scheduled.

The printer handle hPrinter is obtained by calling the OpenPrinter function.

This function should be called after an application calls the AddJob function. ScheduleJob is not required for basic printing support, but should be implemented if possible.