Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm developing an application in which I need to catch GUID_IO_MEDIA_EJECT_REQUEST device event. I have searched a lot on internet but could not detailed information about this device event.
I have done following steps:
1)Registered device for notification through RegisterDeviceNotification().
2)On WM_DEVICECHANGE, in DBT_CUSTOMEVENT checking if device type is handle or not.
3)If it is handle then getting eventguid from lParam & comparing with GUID_IO_MEDIA_EJECT_REQUEST.

But I'm not getting GUID_IO_MEDIA_EJECT_REQUEST GUID.
Is there any step missing?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900