BOOL (WINAPI *pfnStartDocPort)(
| 
 HANDLE hPort,  | |
| 
 LPWSTR pPrinterName,  | |
| 
 DWORD JobId,  | |
| 
 DWORD Level,  | |
| 
 LPBYTE pDocInfo  | |
| 
 );  | 
StartDocPort performs the tasks required to start a print job on the specified port.
The return value is TRUE if the function is successful; FALSE if the function fails.
The spooler calls StartDocPort when it is ready to send a job to the printer. StartDocPort should perform whatever port setup is required in order to send data from subsequent WritePort calls to the printer.