Printer Support

Previous versions of Windows used printer driver messages called escapes and the Escape function to communicate with the printer. For the most part, in the Win32 API, the Escape function is obsolete and has been replaced with more specific functions, such as StartDoc, EndDoc, StartPage, EndPage, and so on.

An application must create a device context for a printer using the CreateDC function before it can print. After the application has a device context for a printer, it can start the printing process by calling the StartDoc function. The StartDoc function requires a DOCINFO structure that describes the document that is about to be printed (see the detailed definition of the DOCINFO structure under the StartDoc function later ...

Get Microsoft Windows 2000 API SuperBible now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.