This function saves the handle to the DEVMODE structure into the file specified by the PrintFileName parameter.
[C++Builder] BOOL
IKGetDevModeHandle(LPCTSTR PrinterName, HANDLE hDevMode);
[Delphi] function
IKGetDevModeHandle(PrinterName: PChar; hDevMode: THandle)
LongBool;
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 IKGetDevModeHandle and IKPrintCreateDC functions. For more information about the DEVMODE structure, please refer to WindowsAPI or related manuals.