BOOL DrvStartDoc(
IN SURFOBJ *pso, | |
IN PWSTR pwszDocName, | |
IN DWORD dwJobId | |
); |
DrvStartDoc sends any control information needed at the start of a document.
Parameters
pso
Points to the surface object. The object can be queried to find its type and which PDEV it is associated with.
pwszDocName
Points to a zero-terminated Unicode string specifying the user-readable name of the document being printed.
dwJobId
Identifies the print job. This value is returned to GDI from the spooler in a call to StartDocPrinter.
Return Value
The return value is TRUE if the control information is received. Otherwise, it is FALSE, and an error code is logged.
Comments
The control codes should be sent using WritePrinter. See the Win32 SDK.
DrvStartDoc is required for printer drivers.