BOOL DrvUpgradePrinter(
DWORD Level, | |
LPBYTE pDriverUpgradeInfo | |
); |
DrvUpgradePrinter upgrades a printer’s registry device settings.
If DrvUpgradePrinter is successful, the return value is TRUE. Otherwise, DrvUpgradePrinter sets a last-error code and returns FALSE.
The spooler calls DrvUpgradePrinter for every printer when a new printer driver is copied onto the system. This occurs when a system is upgraded from one operating system release to the next, or when a user updates a printer driver by calling the Win32 AddPrinterDriver function. DrvUpgradePrinter should update the registry with the new device settings for the specified printer.