Share via


DrvStartDoc

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

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] Specifies the identifier for the print job. This value returns to GDI from the spooler in a call to the StartDocPrinter function.

Return Values

TRUE indicates success. FALSE indicates failure.

Remarks

This function is required for printer drivers.

The WritePrinter function sends the control codes.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Winddi.h.

See Also

Printer Drivers

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.