USB Printer Class (raw output via usbprint.sys)

Hello,

Problem:

I have an USB printer which is compliant with the USB Printer Class devices. The printer is attached to a PC (Windows XP).
From what I understand, Windows support directly USB Printer Class devices via (Usbprint.sys / Usbmon.dll). I don't need to print from Windows. The printer doesn't have a "Windows" driver but when I plugged it, Windows started usbprint.sys.

My question is:

I want to send custom commands to the printer.
How do I use Usbprint.sys / Usbmon.dll to communicate directly with the printer? I presume i can do it without having to write a driver.

Thx for reading.
[665 byte] By [Robert R.] at [2007-11-19 7:29:48]
# 1 Re: USB Printer Class (raw output via usbprint.sys)
On this page you can find working sample of what you need.
http://blog.peter.skarpetis.com/

Could anybody tell me, how to know to which spooler port USB printer is bound?
It seems each USB printer has two device objects in the Windows device tree, first for USB raw device controlled by usb sys driver and second generated by usbprint.sys, which represents "spooler" printer under USBPRINT (or DOT4) device tree branch. How to determine which raw device corresponds to spooler printer?
Rothmans at 2007-11-10 3:54:55 >
# 2 Re: USB Printer Class (raw output via usbprint.sys)
Hello Robert,

I'm looking for the same. My driver works fine with the USB printer but now I need to send some commands directly to the printer i.e. without using the printer driver. Have you received any replies or have you found out any solution for this? If yes, kindly let me know, and if I found something, I'll let me know. You can mail me to adibhapse@hotmail.com

Adi
adibhapse at 2007-11-10 3:55:55 >
# 3 Re: USB Printer Class (raw output via usbprint.sys)
Can Anybody send me some source code for using usbprint.sys file to access usb to lpt cable.
theguru at 2007-11-10 3:56:50 >