Specifications
No
EPSON
TITLE
EPSON Advanced Printer Driver for TM series
StatusAPI
Reference Manual
Revision
L
NEXT
16
SHEET
15
3.7. BiSetStatusBackFunction
[Function]
This registers the called callback function on the occasion of Automatic Status Back.
[Format]
int BiSetStatusBackFunction (int nHandle,
int (CALLBACK EXPORT *pStatusCB)(DWORD dwStatus));
[Argument]
int nHandle
This specifies the handle value of the printer for which the status is monitored. The BiOpenMonPrinter() return value is used
as the handle value.
int (CALLBACK EXPORT *pStatusCB) (DWORD dwStatus)
Sets the callback function’s address.
[Return Value]
If registration of the callback function is successful, a 0 is returned. If there is an error, the following error code (less than
zero) is returned.
ERR_HANDLE The handle value that specifies the printer is incorrect.
ERR_PARAM Parameter error
[Explanation]
If there is a BiSetStatusBackFunction() call, first, the printer status at that point in time is set in dwStatus and the callback
function is called. After that, each time the printer’s status changes, the new status is set in dwStatus and the callback function
is called. Cancellation of Automatic Status Back is accomplished by executing BiCancelStatusBack().
For the value that is set in the callback function’s argument dwStatus, see the table in
5.2 Printer Statuses that Can Be
Acquired
.
[Note]
Within registered callback function, it is a separate thread. Therefore, StatusAPI cannot be used from the callback function.
[Supported printer]
TM-T88II(R), TM-T88III, TM-T90, TM-L90, TM-H5000II, TM-U590, TM-U675, TM-H6000, TM-H6000II, TM-J8000,
TM-J2000/2100, TM-J7000/7100, TM-H3000(R), TM-U230, TM-U210, TM-U325, TM-U950, TM-U295, TM-L60II