A user can specify the default document settings for a printer. This is called the per-user DEVMODE because it only affects the defaults for a particular user, and the information for each printer is defined in a separate DEVMODE structure.
To set the per-user DEVMODE, call SetPrinter with either the PRINTER_INFO_2 or the PRINTER_INFO_9 structure. To reset the per-user DEVMODE to the global default DEVMODE, call SetPrinter with the PRINTER_INFO_8 structure.
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.
