OpenMonPrinter¶
Description
Starts using the Win32 API and returns the API handle.
Syntax
INT OpenMonPrinter( INT i_type, LPCTSTR i_prt )
Parameter
i_type
Open type
2
i_prt
Name of the printer that uses the Win32
Specify the printer name (friendly name).
Return value
On success: Returns the API handle to identify the printer. On failure: Returns an error code. See "Error Code List" for details of the error code.
Remarks
- The number of API handles that can be retrieved simultaneously in 1 process is up to 8. The number is up to 126 in total processes.
- When the API handle retrieved by this API is no longer used, be sure to disable it by CloseMonPrinter.
- Set the connection destination of the printer driver to USB, or serial (COM port of Bluetooth device).
- This API succeeds even when the printer is not connected or the printer power is turned off.