This topic introduces how to print from a native Windows program using the GDI Print API.
Overview
Printing is usually an integral part of a native Windows program, so it is not a feature that you can add easily after you have written the program. When designing a program for Windows 7, you should consider using the XPS Print API to provide the printing functionality because it provides the most compatibility for the future. Programs that must run on Windows Vista and earlier versions of Windows will most likely use the GDI Print API to provide printing functionality. The GDI Print API is also supported in Windows 7, but it is more limited than the XPS Print API.
Related topics
How to print from a Windows application
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
