How to get notification when removable media(usb, harddisk)is unlocked

for eg i have a usb which is locked with bitlocker.
i am looking for some way to get notification as soon as removable device is unlocked by the user?is there any way to do that using dbt.h in c++?
i got below code from this link http://read.pudn.com/downloads163/sourcecode/windows/system/740844/USBDumper%20-%20OK/src/usb.cpp__.htm
but it doesn't detect usb which is locked with bitlocker not even after its unlocked
I don't know the internals of BitLocker, but I doubt you can do this at the USB level. All you'd see at best is that some particular sectors are being read, which can happen for any number of reasons. For example, the device might simply be being imaged for backup.
I guess you would need to hook into BitLocker's internal functions. Unfortunately I think you'll have to do some reverse engineering on BitLocker.
Topic archived. No new replies allowed.