Replaces a printer in a printer configuration file (the so-called "P-File") by a new one or allows you to set special printer parameters.
This function allows you to enter one (or both) printers in the printer configuration file. If none exists, it will be created. Since this file is read by LlPrintStart() and LlPrintWithBoxStart(), the function must be executed BEFORE calling these functions. The DEVMODE structure is defined in the Windows API.
These and related functions that affect the printer configuration file (the so-called "P-file") to change printer settings cannot be used when Printerless (see Printerless) is enabled.
Platforms: Windows 10 (Version 21H2 - 23H2), Windows 11 (21H2 - 22H2), Windows Server 2016 - 2022
.NET: .NET Framework 4.8, .NET 6, .NET 8, .NET 9