CDROM load/eject notification in kernel

Hi

I need to get a notification inside my driver about CDROM load/eject
operations.

The previously posts about this matter only say how to do this in user mode
or talk about some kind of a media event but without further details.

So, any idea how to do it on kernel mode?

Thanks

Hello

Try to IoRegisterPlugPlayNotification() on VolumeClassGuid, and check the
target’s name if it is a CDROM device, or even the device’s type.

Hope that helps,
Elias

“Omer B” wrote in message news:xxxxx@ntdev…
Hi

I need to get a notification inside my driver about CDROM load/eject
operations.
The previously posts about this matter only say how to do this in user mode
or talk about some kind of a media event but without further details.

So, any idea how to do it on kernel mode?

Thanks