This function frees the handle to the DEVMODE and DEVNAMES structures.
[C++Builder/Visual
C++] BOOL
IKReleaseDevModeHandle(HANDLE hDevMode);
[Delphi] function
IKReleaseDevModeHandle(hDevMode: THandle): LongBool;
[Visual Basic] Function
IKReleaseDevModeHandle(ByVal hDevMode As Long) As Long
Parameters
Name | Explanation |
---|---|
hDevMode | The handle of the DEVMODE and DEVNAMES structures retrieved by the IKGetDevModeHandle, IKGetDevModeHandleEx, IKPrintDialog functions |
Return Value
Returns True (nonzero) if successful. Returns False (0) if unsuccessful.
Explanation
The IKReleaseDevModeHandle function frees the handle to the DEVMODE and DEVNAMES structures. Execute this function when the handle of DEVMODE structure and DEVNAMES structure is no longer needed. If successful, the memory occupied by hDevMode will be released.