Partager via


DrvStartDoc (Windows Embedded CE 6.0)

1/6/2010

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
Windows Embedded CE Windows CE 1.0 and later

See Also

Reference

Printer Driver Functions