ReplaceUserSettings

 

 

#include “BlackIceDEVMODE.h”

 

BOOL ReplaceUserSettings(LPTSTR szPrinterName, BOOL bAllUsers)

Description

Replaces the existing printer settings for either the current user or all users on the system.  This function will read the new printer settings from the specified printer driver’s INI file.  If you want to specify a specific DEVMODE to use as the new printer settings, use the CreateDefaultSettings and ClearUserSettings.

Parameters

LPTSTR szPrinterName                 - Printer Name (string).

BOOL bAllUsers                              - If True replaces user settings for all users, if false applies to current user only.

Return value

TRUE if successfully updated, otherwise FALSE.

Programming Notes

None

Code Example

None