Sending Write request to USBPRINT.sys from Virtual COM driver

Hi,

I am new to windows device driver development, I am developing a Virtual serial driver that needs to send request to USBPRINT.SYS driver.

In the driver I have registered for PnP notification for usbprint.sys and receiving symbollic link of printer device and I am able to open a target successfully. But I cannot forward Write Request to USBPRINT.SYS.

Please help me in doing this!!!

Regards,
Vidyasagar

xxxxx@gmail.com wrote:

I am new to windows device driver development, I am developing a Virtual serial driver that needs to send request to USBPRINT.SYS driver.

This is still totally the wrong way to do this. Usbprint.sys can be
controlled from user-mode, and the APIs are practically the same as the
calls for serial ports. Why wouldn’t you just have a thin user-mode DLL
that your client can call, which then drives usbprint.sys directly?
Skip the idiotic, useless, and error-prone translation through the
antique serial port mechanism. Here’s someone who wrote directly to
usbprint.sys from a user-mode app:

http://webcache.googleusercontent.com/search?q=cache:RjRs1O0hIN4J:blog.peter.skarpetis.com/archives/2005/04/07/getting-a-handle-on-usbprintsys/+&cd=13&hl=en&ct=clnk&gl=us

In the driver I have registered for PnP notification for usbprint.sys and receiving symbollic link of printer device and I am able to open a target successfully. But I cannot forward Write Request to USBPRINT.SYS.

You can’t possibly expect us to do any analysis from this. There could
be any of 1,000 things wrong with your driver. Show us your code. How
did you open the device? Did you get a file handle?


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.