This function saves the handle to the DEVMODE structure and the DEVNAMES structure into the file specified by the PrintFileName parameter.
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, IKGetDevModeHandleEx, IKPrintDialog functions |
hDevNames | The handle of the DEVNAMES structure retrieved by the IKGetDevModeHandle and IKPrintDialog functiona |
Return Value
Returns True (nonzero) if successful. Returns False (0) if unsuccessful.
Explanation
The IKSaveDevModeHandleEx function saves the handle to the DEVMODE structure and the DEVNAMES 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, IKGetDevModeHandleEx, PrintCreateDC, IKPrintCreateDCEx, and the IKSetPrint functions. If hDevNames is NULL or 0, the behavior is the same as IKSaveDevModeHandle.
For details on the DEVMODE structure and DEVNAMES structure, see books related to Windows API.