ClearUserSettings

Clears the existing printer 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 or SaveDefaultBlackIceDevmode to assign a specific devmode

 

BOOL ClearUserSettings(szPrinterName As String, bAllUsers As Bool)

 

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.