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