Overriding device capabilities ?

Can I over ride the device capabilities? To be more specific is it
possible in any way that I plug in the USB flash memory device and it
gets detected as printer!

Thanks and Regards

~Neer

You *can* stick a fork in an electrical outlet, given enough force. But why would you want to?


From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Ladkani, Neeraj
Sent: Thursday, September 07, 2006 10:46 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Overriding device capabilities ?

Can I over ride the device capabilities? To be more specific is it possible in any way that I plug in the USB flash memory device and it gets detected as printer!

Thanks and Regards

~Neer


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Ladkani, Neeraj wrote:

Can I over ride the device capabilities? To be more specific is it
possible in any way that I plug in the USB flash memory device and it
gets detected as printer!

If you write a specific INF file for the device, with its specific VID
and PID, instead of allowing it to fall back to the class driver, you
can force whatever driver you want to be loaded. Such a thing is likely
to crash right away, of course.


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

I am writing a hardware first installation for a device in which the
device has to be plugged in to system , and given an inf the co
installer get launched and we get the wizard to install the driver .

For us the device job is to do nothing except the PnP should detect the
device as printer class with correct hardware id because during
installation we match the hardware id available in INF with PnP stored
value in registry.

I was thinking if we can write a USB bus filter driver, which can
override the device capabilities of the device accordingly to the values
given in configuration file and pass those capabilities to PnP Manager,
I won’t need those physical devices!!

Let me know if it’s possible

Thanks and Regards
~Neer

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Arlie Davis
Sent: Friday, September 08, 2006 12:42 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Overriding device capabilities ?

You *can* stick a fork in an electrical outlet, given enough force. But
why would you want to?


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ladkani, Neeraj
Sent: Thursday, September 07, 2006 10:46 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Overriding device capabilities ?

Can I over ride the device capabilities? To be more specific is it
possible in any way that I plug in the USB flash memory device and it
gets detected as printer!

Thanks and Regards

~Neer


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

Device capabilities have nothing do with the device type or its class.
That is determined by an INF match based on the reported HW IDs (which
are independent of the caps).

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ladkani, Neeraj
Sent: Thursday, September 07, 2006 2:23 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Overriding device capabilities ?

I am writing a hardware first installation for a device in which the
device has to be plugged in to system , and given an inf the co
installer get launched and we get the wizard to install the driver .

For us the device job is to do nothing except the PnP should detect the
device as printer class with correct hardware id because during
installation we match the hardware id available in INF with PnP stored
value in registry.

I was thinking if we can write a USB bus filter driver, which can
override the device capabilities of the device accordingly to the values
given in configuration file and pass those capabilities to PnP Manager,
I won’t need those physical devices!!

Let me know if it’s possible

Thanks and Regards
~Neer

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Arlie Davis
Sent: Friday, September 08, 2006 12:42 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Overriding device capabilities ?

You *can* stick a fork in an electrical outlet, given enough force. But
why would you want to?


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ladkani, Neeraj
Sent: Thursday, September 07, 2006 10:46 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Overriding device capabilities ?

Can I over ride the device capabilities? To be more specific is it
possible in any way that I plug in the USB flash memory device and it
gets detected as printer!

Thanks and Regards

~Neer


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

If you want to practice device installation in all of the usual scenarios (device installed before software, software installed before device, etc.), then you have several options. One of which would be to use the Toaster example from the DDK, and modify it so that the PDOs that it exposes present the hardware IDs that you want enumerated. That way you don’t need to plug in a CF device so that it can pretend to be a printer – you can just have the Toaster bus enumerator enumerate a “printer” with whatever PNP IDs you want (e.g. USB.…).

Another way would be to modify your INF file so that it matches some existing device. Your driver will then be loaded on whatever device you choose – which can have, of course, some hilarious side effects.

– arlie

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Ladkani, Neeraj
Sent: Thursday, September 07, 2006 2:23 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Overriding device capabilities ?

I am writing a hardware first installation for a device in which the device has to be plugged in to system , and given an inf the co installer get launched and we get the wizard to install the driver .

For us the device job is to do nothing except the PnP should detect the device as printer class with correct hardware id because during installation we match the hardware id available in INF with PnP stored value in registry.

I was thinking if we can write a USB bus filter driver, which can override the device capabilities of the device accordingly to the values given in configuration file and pass those capabilities to PnP Manager, I won’t need those physical devices!!

Let me know if it’s possible

Thanks and Regards
~Neer

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Arlie Davis
Sent: Friday, September 08, 2006 12:42 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Overriding device capabilities ?

You *can* stick a fork in an electrical outlet, given enough force. But why would you want to?


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ladkani, Neeraj
Sent: Thursday, September 07, 2006 10:46 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Overriding device capabilities ?

Can I over ride the device capabilities? To be more specific is it possible in any way that I plug in the USB flash memory device and it gets detected as printer!

Thanks and Regards

~Neer


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

This is not device capabilities, but device IDs.

Such override will do nothing useful, since the USB storage cannot respond
to the printer-specific USB commands.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Ladkani, Neeraj”
To: “Windows System Software Devs Interest List”
Sent: Thursday, September 07, 2006 9:46 PM
Subject: [ntdev] Overriding device capabilities ?

Can I over ride the device capabilities? To be more specific is it
possible in any way that I plug in the USB flash memory device and it
gets detected as printer!

Thanks and Regards

~Neer


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer