This function retrieves the string information from the handle of the DEVNAMES structure.
[C++Builder/Visual
C++] BOOL IKGetDevNamesInfo(HANDLE
hDevNames, LPTSTR DriverName, LPTSTR DeviceName, LPTSTR
OutputName);
[Delphi] function
IKGetDevNamesInfo(hDevNames: THandle; DriverName, DeviceName,
OutputNameļ¼ PChar): LongBool;
[Visual Basic] Function
IKGetDevNamesInfo(ByVal hDevNames As Long, ByVal DriverName As
String, ByVal DeviceName As String, ByVal OutputName As String) As
Long
Parameters
Name | Explanation |
---|---|
hDevNames | The handle of the DEVNAMES structure as retrieved by the IKGetDevModeHandleEx function |
DriverName | Variable to get the device driver name |
DeviceName | Variable to get the printer name |
OutputName | Variable to get the output port name |
Return Value
Returns True (nonzero) if successful. Returns False (0) if unsuccessful.
Explanation
The IkGetDevNamesInfo function retrieves the string information from the handle of the DEVNAMES structure. If this method succeeds, string information, such as printer name, is set in DeviceName.
For more information about the DEVNAMES structure, please refer to WindowsAPI or related manuals.