Compartilhar via


DrvStartDoc (Compact 2013)

3/26/2014

This function sends any control information needed at the start of a document.

Syntax

BOOL DrvStartDoc(
  SURFOBJ* pso,
  PWSTR pwszDocName,
  DWORD dwJobId 
);

Parameters

  • pso
    [in] Pointer to the surface object. You can query the object to find its type and which PDEV structure it is associated with.
  • pwszDocName
    [in] Pointer to a zero-terminated Unicode string that specifies the user-readable name of the document the user is printing.
  • dwJobId
    [in] Identifier for the print job. This value returns to GDI from the spooler in a call to the StartDocPrinter function.

Return Value

TRUE indicates success. FALSE indicates failure.

Remarks

This function is required for printer drivers.

The WritePrinter function sends the control codes.

Requirements

Header

winddi.h

See Also

Reference

Printer Driver Functions