HANDLE DrvSplStartDoc(
HANDLE hPrinter, | |
DWORD JobId | |
); |
DrvSplStartDoc starts the identified print job.
DrvSplStartDoc returns a per-job instance handle upon success; it returns zero if it fails.
The handle returned by DrvSplStartDoc is typically a pointer to a block of memory allocated by the user-mode printer driver for the instance data associated with the job identified by JobId. The user-mode printer driver should save hPrinter and JobId because they are not provided in any subsequent DrvSplXxx calls.
The user-mode printer driver should take any steps necessary to protect itself in the event that multiple jobs are printed simultaneously.
DrvSplStartDoc must be implemented if you do write a user-mode printer driver.