StartDocPrinter

  BOOL StartDocPrinter(hPrinter, Level, pDocInfo)    
  HANDLE hPrinter;    
  DWORD Level;    
  LPBYTE pDocInfo;    

This function informs the Spool Subsystem that a Document is to be started on this Printer.

Parameters

hPrinter

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

Level

This value must be 1.

pDocInfo

This value is a Pointer to a DOC_INFO_1 structure.

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.