CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2009
    Posts
    1

    Smile How to get USB Device Path From VID and PID

    Hi

    I am trying to write a user mode application, which communicate with an installed usb device. I could use CreateFile to send data to it. But i don't know how to get the device path. Its type is "Vendor Specific", so not a HID.

    Someone can help please?

  2. #2

    Re: How to get USB Device Path From VID and PID

    Hello

    The SetupDI**** API calls can be used to acquire information about devices. The devicepath can be found using " SetupDiGetDeviceInterfaceDetail "

    http://msdn.microsoft.com/en-us/library/ms792901.aspx

    Hope this helps

    Peter

  3. #3
    Join Date
    May 2006
    Posts
    3

    Re: How to get USB Device Path From VID and PID

    Just to update this for other reference.

    You can use this idea and techniques.

    http://ulymar.u4m2.com/wp-content/up...09/09/main.PNG

    http://ulymar.u4m2.com/?p=64


    br

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured