ExportSettingstoINIFile

 

Use this function to export the printer driver settings to an INI file. The settings written include the members of the passed BlackIceDEVMODE structure and settings stored in the registry including file format specific options and the paper list.

 

ExportSettingstoINIFile (pBlackIceDEVMODE As Long, szFileName As String) As Boolean

 

Input value: pBlackIceDEVMODE            - handle to the BlackIceDEVMODE structure.

Input value: szFileName                             - path and name of the new INI file (string).

Return value - TRUE if the settings were successfully saved, otherwise FALSE.

 

NOTE: For 32-bit applications , use pBlackIceDEVMODE as Integer, instead of Long.