ClearUserSettings

 

 

#include “BlackIceDEVMODE.h”

 

BOOL ClearUserSettings(LPTSTR szPrinterName, BOOL bAllUsers)

Description

Clears the existing printer driver settings for either the current user or all users on the system.  This function will only clear the existing printer settings for the specified printer, it will not assign new default settings.  If you want to specify a specific DEVMODE to use as the new printer settings, use the CreateDefaultSettings to read settings from an INI file and SaveDefaultBlackIceDevmode to assign a specific DEVMODE.

Parameters

Input value: szPrinterName            - Printer Name (string).

Input value: bAllUsers                     - If True replaces user settings globally, if false applies to current user only.

Return value

TRUE if successfully updated, otherwise FALSE.

Programming Notes

None

Code Example

None