Click here to Skip to main content
15,849,328 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
I have to differentiate between a USB mass storage device and a USB Printer?

Issue i am facing is all the USB printers now a days come with an inbuilt memory / memory slot.
So becomes quiet intriguing to differentiate that this is a USB Printer and not a usb drive.

I need help on how to appropriately differentiate that the USB plugged in is a USB printer.
Code help would be great.

Thanks
Posted
Comments
KarstenK 29-Oct-13 10:14am    
The memory of such USB-Printer is visible as usb drive. So you see 2 devices: a printer and a drive.

You got to deal with it.
Subrat Patnaik 30-Oct-13 3:12am    
Yeah..Still got to figure it out...a must for me to differentiate even the memory of printer as not a mass storage device and that of a printer.

1 solution

Hi,
you can use Usbprint.sys class driver that manages USB printers and usbstor.sys to manage USB mass storage.
for more information about these classes, use this link:
http://msdn.microsoft.com/en-us/library/windows/hardware/ff538820%28v=vs.85%29.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900