Re: Is there a WMI class that has USB port names?



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
.



Relevant Pages

  • Re: Cruise Ship Shelter Plan Scuttled!
    ... >So, basically, FEMA pressured Carnival into chartering the ships ... I have a hard time blaming FEMA for not knowing that the evacuees ... They could definitely use the housing at the Port of New Orleans. ...
    (rec.travel.cruises)
  • Re: pyserial and file open conflict?
    ... open a file on disk for reading and then open a com-port, ... from the file to the port and then read something back and compare it ... he asked, already knowing the answer. ...
    (comp.lang.python)
  • Re: is scanner software available?
    ... I use paperport and wish they would ... port it to Linux. ... Knowing that may not happen soon I would need a frontend ...
    (alt.os.linux.redhat)
  • Re: Computer Port Scanning - slightly OT - but a legal question.
    ... ADSL problem I have - and I was asking her what difference knowing ... Is port scanning legal? ... running a server then if that server is insecure or suffers from some kind ... don't even need a firewall. ...
    (uk.legal)
  • Re: Computer Port Scanning - slightly OT - but a legal question.
    ... ADSL problem I have - and I was asking her what difference knowing ... Is it possible this port scanning is related to my use of her system ... It's likely that ISPs prohibit their customers from this kind of activity. ... Then check the acceptable use policy of the ISP to ...
    (uk.legal)

Loading