Hi,
Is there any way to find the type of device that is attached to the system.
For example if a USB device is plugged in I need to find out that it is USB
and any more details of the device.
Could we use the SetupXXx device API functions to achieve this?
Thanks,
Kedar.
Yes you can using those. Some things may need to be done in combination
with some
of the CM_ (config manager) API’s.
Using this method will let you get the kind of information you can see
in Device Manager.
Rob Linegar
Software Engineer
Data Encryption Systems Limited
www.des.co.uk | www.deslock.com
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of kedar
Sent: 22 March 2005 07:22
To: Windows System Software Devs Interest List
Subject: [ntdev] Finding type of device that is attached
Hi,
Is there any way to find the type of device that is attached to the
system.
For example if a USB device is plugged in I need to find out that it is
USB
and any more details of the device.
Could we use the SetupXXx device API functions to achieve this?
Thanks,
Kedar.
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@des.co.uk
To unsubscribe send a blank email to xxxxx@lists.osr.com
kedar wrote:
Is there any way to find the type of device that is attached to the system.
For example if a USB device is plugged in I need to find out that it is USB
and any more details of the device.
Could we use the SetupXXx device API functions to achieve this?
I assume, although this question doesn’t say so, that you want to find a
PARTICULAR device. For that, you can use the SetupDi APIs to search
through all the devices of that class. For example, if you are
searching for a mouse, you look for devices in the mouse class. There
are lots of examples of this.
If you are looking for something more generic, perhaps you should ask
your question again in a different way.
–