SetStatusBack¶
Description
Starts the notification of the printer status by StatusCallback event.
Syntax
ErrorCode SetStatusBack()
Return value
Returns an error code. See "Error Code List" for details of the error code.
Remarks
- When the notification of the printer status is started by this API, StatusCallback event is raised with the current printer status.
- When the event handler is not registered on StatusCallback event, this API fails.
- Even when StatusCallback event is already started and this API is called again, the immediate response of the printer status is performed.
- StatusCallback event started by this API is stopped by the following APIs:
- CloseMonPrinter
- CancelStatusBack
- The time from receiving the printer status to raising the event is not guaranteed.
- See "Printer Status List" for details of the printer status.