Partager via


Gdi::StartDocW_I

This method starts a print job.

static WINGDIAPI int WINAPI StartDocW_I(
  HDC hdc, 
  CONST DOCINFO* lpdi
);

Parameters

  • hdc
    [in] Handle to the device context for the print job.
  • lpdi
    [in] Long pointer to a DOCINFO structure that contains the name of the document file and the name of the output file.

Return Values

A value greater than zero indicates success. This value is the print job identifier for the document. A value less than or equal to zero indicates failure. To get extended error information, call GetLastError.

Remarks

This method is an internal version of the StartDoc function.

Applications should call the Gdi::StartDoc_I method immediately before beginning a print job. Using this method ensures that multipage documents are not interspersed with other print jobs.

Windows CE does not support printing to files and ignores the lpszOutput member of the DOCINFO structure.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Gdi.hpp.

See Also

StartDoc | Gdi::EndDoc_I | Gdi::StartPage_I | DOCINFO

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.