Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to detect a new device was installed ? (What message/event?)

How to detect a new device was installed ? (What message/event?)

Scheduled Pinned Locked Moved C / C++ / MFC
questiontutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Led 0
    wrote on last edited by
    #1

    How to detect a new device was installed ? (What message/event?) Basicly I've got an app that uses webcam(s). When they unplug, I get a nice event that the device is unplugged. But how can I detect that a (usb) device is being connected ? I assume there's a windows-message indicating a new device connection, but I don't have a clue where to find documentation about this. (MSDN isn't always as clear as you'd like it to be :)) Ciao, Led

    P 1 Reply Last reply
    0
    • L Led 0

      How to detect a new device was installed ? (What message/event?) Basicly I've got an app that uses webcam(s). When they unplug, I get a nice event that the device is unplugged. But how can I detect that a (usb) device is being connected ? I assume there's a windows-message indicating a new device connection, but I don't have a clue where to find documentation about this. (MSDN isn't always as clear as you'd like it to be :)) Ciao, Led

      P Offline
      P Offline
      Prakash Nadar
      wrote on last edited by
      #2

      WM_DEVICECHANGE.


      Tech.Support : Mam, is your pc running under windows? Customer : No actually its close to the main door.

      L 1 Reply Last reply
      0
      • P Prakash Nadar

        WM_DEVICECHANGE.


        Tech.Support : Mam, is your pc running under windows? Customer : No actually its close to the main door.

        L Offline
        L Offline
        Led 0
        wrote on last edited by
        #3

        Thanks, exactly what I was looking for. After 35 minutes I couldn't find anything, and while you posted I found it myself. Stupid me....

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups