This function saves the handle to the DEVMODE structure into the file specified by the PrintFileName parameter.

[C++Builder/Visual C++]     BOOL IKGetDevModeHandle(LPCTSTR PrinterName, HANDLE hDevMode);
[Delphi]         function IKGetDevModeHandle(PrinterName: PChar; hDevMode: THandle) LongBool;
[Visual Basic]   Function IKGetDevModeHandle(ByVal PrinterName As String, ByVal hDevMode As Long) As Long

Parameters

Name Explanation
PrintFileName The filename of the file containing the printer settings to be saved
hDevMode The handle of the DEVMODE structure retrieved by the IKGetDevModeHandle function

Return Value

Returns True (nonzero) if successful. Returns False (0) if unsuccessful.

Explanation

The IKSaveDevModeHandle function saves the handle to the DEVMODE structure into the file specified by the PrintFileName parameter. The file format of the file is the same as that saved by the IKSetPrint function. The saved file can be used by the GetDevModeHandle, PrintCreateDC, and the SavePrinterInfo functions. For more information about the DEVMODE structure, please refer to WindowsAPI or related manuals.

The ImageKit8 ActiveX is a product created by Newtone Corporation