Reset¶
Description
Performs a hardware reset of the printer.
Syntax
INT Reset( INT i_hdl )
Parameter
i_hdl
API handle
Specify the API handle retrieved by OpenMonPrinter.
Return value
On success: Returns 0. On failure: Returns an error code. See "Error Code List" for details of the error code.
Remarks
- Performs hardware reset of the printer using the communication protocol (without using printer commands).
- After called this API, wait a few seconds to send the data. If data transmission is performed right after calling this API, it may cause the data to be missed.
- When this API is called, the following APIs are aborted.
- DirectIO
- DirectIOEx
- DirectSendRead
- During the call of this API, the printer status response will be "No response". See "Printer Status List" for details of the printer status.
- When LockPrinter is being called by another process, calling this API fails.
- When the printer is not connected or in a communication disabled state, this API fails.
- If this API is executed with a Bluetooth connection when the printer does not accept data, this API will succeed. However, the reset is not executed until the printer is ready to print. Until then, data transmission cannot be performed.