RestoreDefaults

 

#include “BlackIceDEVMODE.h”

 

BOOL RestoreDefaults(LPTSTR szPrinterName)

 

Description

 

Restores the default settings of the specified Black Ice printer for the current user by reading the values from the printer’s INI file.

 

Parameters

 

LPTSTR szPrinterName     - Printer Name (string).

 

Return value

 

TRUE on success, otherwise FALSE.

 

Programming Notes

 

Calling the RestoreDefaults function is equivalent to calling the following functions:

ClearUserSettings(szPrinterName, false);

BlackIceDEVMODE* pDevmode = CreateDefaultSettings(szPrinterName);

SaveBlackIceDEVMODE(szPrinterName, pDevmode);

ReleaseBlackIceDEVMODE(pDevmode);

 

Code Example

 

None