Specifications

No
EPSON
TITLE
EPSON Advanced Printer Driver for TM series
StatusAPI
Reference Manual
Revision
L
NEXT
92
SHEET
91
3.68.
BiGetPrnCapability
[Function]
Acquires printer information specified by printer ID.
[Format]
int BiGetPrnCapability( int nHandle, BYTE prnID, LPBYTE pBuffSize, LPBYTE pBuff)
[Argument]
int nHandle
Specifies the handle value of the printer executing the function. The return value in BiOpenMonPrinter() is specified.
BYTE PrnID
Specifies a printer ID to acquire information. See the following tables.
LPBYTE
pBuffSize
Specifies the memory size to set the printer information. A value can be set in the range of 1 - 80.
After executing this function, the size of the actually read data is set. If the buffer capacity is not enough, the required
number of bytes is set and in case of errors other than this, nothing is set.
LPBYTE
pBuff
Specifies a memory address to set printer information.
[Return Values]
If execution is successful, 0 is returned. If an error occurs, the following error codes (negative values) are returned.
ERR_HANDLE The handle value specified for the printer is incorrect.
ERR_ACCESS Reading/writing with the printer is not possible (printing in progress).
ERR_NOT_SUPPORT Not supported
ERR_OFFLINE It was opened in the offline state, so it cannot be used until the online state is recovered.
ERR_PARAM Specified interval in milliseconds is less than or equal to zero.
ERR_TIMEOUT A time out error occurred.
[Explanation]
Printer ID List
Printer ID
Value set to prnID
Type of Printer ID Acquired Data
1 Printer ID
1-byte data. Acquired data differs depending on models.
2 Type ID 1-byte data. See (A) for details.
3 Firmware version ID 1-byte data. Acquired data differs depending on firmware
versions.
33 Type Information 2-byte data. See (B) for details.
66 Manufacturer Character string data, “EPSON.”
67 Printer Name Character string data. Acquired data differs depending on
models. Example “TM-T90.”
68 Serial Number Character string data. Acquired data differs depending on
models. Example ”DEKK000015”