Specifications
No
EPSON
TITLE
EPSON Advanced Printer Driver for TM series
StatusAPI
Reference Manual
Revision
L
NEXT
27
SHEET
26
3.14. BiGetCounter
[Function]
Acquires the maintenance counter.
[Format]
int BiGetCounter(int nHandle, BYTE readno, LPDWORD readcounter);
[Argument]
int nHandle
Specifies the handle value of the printer being accessed. The BiOpenMonPrinter() return value is used in the handle value.
BYTE readno
Specifies the number of the maintenance counter.
LPWORD readcounter
Sets the maintenance counter value.
[Return value]
0 is returned when printer reset is successful. The following error codes (less than zero) are returned when an error is
triggered.
ERR_HANDLE The handle value specified for the printer is incorrect.
ERR_TIMEOUT A time out error occurred.
ERR_ACCESS Reading/writing with the printer is not possible (printing in progress).
ERR_PARAM Parameter error (specified counter number outside of permissible range)
ERR_NOT_SUPPORT Not supported
ERR_OFFLINE It was opened in the offline state, so it cannot be used until the online state i
ERR_NOT_EPSON Cannot be used (printer not EPSON)