Has anyone had any experience with the Win32 API for Device Management. I have read through alot of the MSDN docs and online forums and haven't found really any examples of using this built in control.
i have successfully been able to "eject" a mass storage device which has proved to be nice for one of my programs, however I as I read in to it, it would be nice to use the DeviceIOControl libraries in a callback sense.
http://msdn.microsoft.com/en-us/library/aa363216(VS.85).aspx
Since i am not a programming expert, nor windows guru, I had found out that Windows will send out messages to all running programs when a device status changes (usb, cd rom inserted, undocked computer, etc). What my goal would be is to get a message when a USB mass storage device is "ready" (sometimes it has to install and enumerate and it will leave and then come back before its ready).
soooo, has anyone had any experience setting up Device notifications?
It seems pretty straightforward, but before I just start copy and pasting and executing random functions and hoping for the best, I was going to see if its been done before 