I require to access Information(version) about Removeable Disk e. g. USB.
I want to access information(version) of USB Interface Version for selected logical drive (G) where USB is pluged in at USB port.
I want to check interface supported for that USB is having version greater than or equal to "USB 2.0 Enhanced".
I tried using WMI classes but from class hierarchy I am not able to get that Information.
Please see the Image file attached of WMI Browser where Red Mark indicates that accessing "USB 2.0 Enhanced" information from Logicakl Drive = F:.
How to access information from WMI hierarchy ?.
First I get input from user as Logical Disk Drive where USB is connected then I want to check that this USB drive is having version "USB 2.0 Enhanced" or not is the problem.
Is there different method to get "USB 2.0 Enhanced" information from Disk Drive.
Last edited by RahulKateSys; November 6th, 2006 at 05:53 AM.
I tried from Win32_USBHub class but it retrieves empty string.
So I found that path or hierarchy shown in image file attached with this thread. From that thread I can get USB interface information from Logical Disk drive letter. But I don;t know how to traverse in hierarchy of WMI.
I tried from Win32_USBHub class but it retrieves empty string.
So I found that path or hierarchy shown in image file attached with this thread. From that thread I can get USB interface information from Logical Disk drive letter. But I don;t know how to traverse in hierarchy of WMI.
Please see the file attached with this post.
Waiting for reply.
---- Rahul
Well, like I said, it looks like idiot developers that aren't populating the fields. At any rate, usbview shows the correct 2.0, so I'll post the source for that here. You can muck with it.
In that code method to access USB Version (BCD Code - 0x0200) is polling to every port by exploring Host Controller Devices and then Expolring Root Hub and then exploring Port then.
So its polling method that's why I choose through WMI.
I require different method to access USB Version of particular port.
Is there any different method?.
I have one problem with polling method as follows,
If there are four port
First port: USB connected for which USB 2.0 interface is connected.
Second Port: Audio Switching tool is running cand its connected through USB.
When this polling method executes if its poll to Second Port then my another utility Audio Switching tool is failed. Means driver call will interfere between communication.
Is WMI internally use the same(Polling) method or it access in a different way ?.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.