Home |
Function USBPrinterInfo |
Function USBPrinterInfoUSBPrinterInfo returns a string with printer model-specific information: const char * USBPrinterInfo(int PrinterIndex); ParametersPrinterIndexIndex of the USB printer to query in the range 0 to 3. return valueIf a printer at the requested index is attached and communication with the printer did not return an error, a pointer to the requested string is returned, otherwise NULL. This function can be used to determine if a printer is attached and what model it is. The returned string is in IEEE 1284 device ID strings format. Example:MFG:Canon;CMD:BJL,BJRaster3,BSCC,TXT01;MDL:BJC-8200; CLS:PRINTER;DES:Canon BJC-8200;VER:1.06;STA:10; The included fields will vary from printer to printer. The buffer to hold the string is dynamically allocated and is deallocated on the next call of function USBPrinterInfo with the same index.
|