CreateDefaultSettings

Returns a new Devmode structure from the specified printer driver by reading the values from the printer’s INI file and current default settings.  This function must be used in conjunction with ClearUserSettings.  Returned Devmode can be assigned to the printer as new default settings by using SaveBlackIceDevmode.  PLEASE NOTE: Memory used by the returned Devmode must be freed by the developer using GlobalFree

 

CreateDefaultSettings(szPrinterName As String) As Long

 

Input value: szPrinterName         - Printer Name (string).

Return value            - handle to the BlackIceDEVMODE structure retrieved from the printer’s INI file settings.

Comment:

One should call ReleaseBlackIceDEVMODE for all DEVMODE handles whether it is returned by LoadBlackIceDEVMODE or CreateDefaultSettings