This function retrieves printer information from the handle to the DEVMODE structure.
[C++Builder/Visual
C++] BOOL IKGetDevModeInfo(HANDLE
hDevMode, PTR_IKPRINT_DEVMODEINFO DevModeInfo);
[Delphi] function
IKGetDevModeInfo(hDevMode: THandle; var DevModeInfo:
IKPRINT_DEVMODEINFO): LongBool;
[Visual Basic] Function
IKGetDevModeInfo(ByVal hDevMode As Long, DevModeInfo As
IKPRINT_DEVMODEINFO) As Long
Parameters
Name | Explanation |
---|---|
hDevMode | The handle of the DEVMODE structure as retrieved by the IKGetDevModeHandle function |
DevModeInfo | A structure (user-defined type) whose member variables contain the retrieved printer information |
Return Value
Returns True (nonzero) if successful. Returns False (0) if unsuccessful.
Explanation
The IKGetDevModeInfo function retrieves printer information from the handle to the DEVMODE structure. If successful, the printer information will be set in the DevModeInfo structure. For more information about the DEVMODE structure, please refer to WindowsAPI or related manuals. For details about the IKPRINT_DEVMODEINFO structure, please refer to the definition of the structure in the IK8Print.dll, IK8PrintA.dll, IK8Print64.dll, IK8Print64A.dll section.