ScheduleJob

  BOOL ScheduleJob(hPrinter, JobId)    
  HANDLE hPrinter;    
  DWORD JobId;    

This function should be called after an AddJob. It informs the Spool Subsystem that the Job that was Added can now be scheduled to be printed.

Parameters

hPrinter

Indicates the open Printer handle that this function is to be performed upon. This Handle is obtained with the OpenPrinter API.

JobId

Specifies the identification number of the Job to be scheduled

Return Value

The return value is TRUE if the function was successful, or FALSE if an error occurred. To obtain extended error information, use the GetLastError function.