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. Detecting the insertion/removal of removable storage

Detecting the insertion/removal of removable storage

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 Posts 3 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.
  • M Offline
    M Offline
    mmica
    wrote on last edited by
    #1

    Hi all, Is it possible to detect the insertion and removal of removable storage? I need to know so I can call up a photo management application when this is done. Regards, Mark

    A M 2 Replies Last reply
    0
    • M mmica

      Hi all, Is it possible to detect the insertion and removal of removable storage? I need to know so I can call up a photo management application when this is done. Regards, Mark

      A Offline
      A Offline
      Antti Keskinen
      wrote on last edited by
      #2

      Yes it is possible. See this[^] link on the MSDN Library. It directs you to the home page of 'Remote Storage Manager' service. This service can be queried to send notifications on a device's state. If you cannot find useful information from that link, use the keyword 'BeginNtmsDeviceChangeDetection' as a search parameter. This is a function that is used to request a notification object. -Antti Keskinen ---------------------------------------------- The definition of impossible is strictly dependant on what we think is possible.

      1 Reply Last reply
      0
      • M mmica

        Hi all, Is it possible to detect the insertion and removal of removable storage? I need to know so I can call up a photo management application when this is done. Regards, Mark

        M Offline
        M Offline
        Michael Dunn
        wrote on last edited by
        #3

        Handle the WM_DEVICECHANGE message, the docs go into great detail in explaining what info is sent with the message. --Mike-- Personal stuff:: Ericahist | Homepage Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ #include "witty-quote.h"

        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