DrvStartDoc
This function sends any control information needed at the start of a document.
Syntax
BOOL DrvStartDoc( IN SURFOBJ *pso, IN PWSTR pwszDocName,
IN DWORD dwJobId );
Parameters
- pso
- Pointer to the surface object. The object can be queried to find its type and which PDEV structure it is associated with.
- pwszDocName
- Pointer to a 0-terminated Unicode string specifying the user-readable name of the document being printed.
- dwJobId
- Identifies the print job. This value is returned to the GDI from the spooler in a call to the StartDocPrinter function.
Return Values
TRUE indicates success. FALSE indicates failure.
Remarks
The control codes should be sent using the WritePrinter function.
This function is required for printer drivers.