Re: Is there a WMI class that has USB port names?
- From: Mike Scirocco <mscir@xxxxxxxxx>
- Date: Fri, 06 Oct 2006 22:40:20 -0700
Scott Peterson wrote:
I want to open connect to a USB device via the CreateFile command. This
requires knowing the device's port, which is something like
"\\.\Usbscan1". So far, I've got the Win32_PnPEntity of the device and
I'm looking up the port name in the "CreateFileName" value of the
registry key
"HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\%s\0001" where
%s is the ClassGuid of the device's Win32_PnPEntity object. It works,
but I'm wondering if there is a WMI class that has this information.
Thanks.
This might be more helpful
http://www.scriptinganswers.com/archive/articles/USBdevicename.htm
http://www.microsoft.com/technet/scriptcenter/resources/qanda/feb06/hey0208.mspx
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/win32_usbhub.asp
.
- Prev by Date: Re: Is there a WMI class that has USB port names?
- Next by Date: Beginner to WMI and need some guidance.
- Previous by thread: Re: Is there a WMI class that has USB port names?
- Next by thread: Beginner to WMI and need some guidance.
- Index(es):
Relevant Pages
|
Loading