Results 1 to 2 of 2

Thread: USB vendor or product ID

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2006
    Posts
    17

    USB vendor or product ID

    We have a system that uses a USB device and I wrote the code in VB6. I want the software to run when the USB device is plugged into the PC. Is there a way to command the PC to run my executable when it detects my vendor or product ID? Thank you.

  2. #2
    PowerPoster
    Join Date
    Jun 2015
    Posts
    2,229

    Re: USB vendor or product ID

    you're in luck.

    http://stackoverflow.com/questions/1...vice-connected

    https://web.archive.org/web/20080506.../cc301341.aspx

    It looks like you need to implement IHWEventHandler in an ActiveX DLL and then register your DLL as an AutoHandler.

    https://msdn.microsoft.com/en-us/lib.../hh127452.aspx
    Last edited by DEXWERX; Mar 9th, 2016 at 09:10 AM.

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