Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

Device Change Notifications

OSR_Community_UserOSR_Community_User Member Posts: 110,217
Hi,

I am currently writing a CDROM filter driver. I am trying to get
notification of a device change (like WM_DEVICE change) so I can detect
when a CD has been loaded/ejected. Is IoRegisterPlugPlayNotification
notification the function I'm looking for and if so how exactly do I
call this for device change notifications?

Regards,
Ceri

________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
________________________________________________________________________

Comments

  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    There is an event managed by the CD class driver. MediaChange%d (IIRC).
    Your application or a driver can monitor this event.

    -----Original Message-----
    From: [email protected]
    [mailto:[email protected]] On Behalf Of Ceri Coburn
    Sent: Tuesday, April 29, 2003 6:28 AM
    To: File Systems Developers
    Subject: [ntfsd] Device Change Notifications

    Hi,

    I am currently writing a CDROM filter driver. I am trying to get
    notification of a device change (like WM_DEVICE change) so I can detect
    when a CD has been loaded/ejected. Is IoRegisterPlugPlayNotification
    notification the function I'm looking for and if so how exactly do I
    call this for device change notifications?

    Regards,
    Ceri

    ________________________________________________________________________
    This email has been scanned for all viruses by the MessageLabs SkyScan
    service. For more information on a proactive anti-virus service working
    around the clock, around the globe, visit http://www.messagelabs.com
    ________________________________________________________________________


    ---
    You are currently subscribed to ntfsd as: [email protected]
    To unsubscribe send a blank email to [email protected]
  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    No, media changes are not tracked by PnP interface arrival
    notifications.

    Max

    ----- Original Message -----
    From: "Ceri Coburn" <[email protected]>
    To: "File Systems Developers" <[email protected]>
    Sent: Tuesday, April 29, 2003 5:27 PM
    Subject: [ntfsd] Device Change Notifications


    > Hi,
    >
    > I am currently writing a CDROM filter driver. I am trying to get
    > notification of a device change (like WM_DEVICE change) so I can
    detect
    > when a CD has been loaded/ejected. Is
    IoRegisterPlugPlayNotification
    > notification the function I'm looking for and if so how exactly do I
    > call this for device change notifications?
    >
    > Regards,
    > Ceri
    >
    >
    ______________________________________________________________________
    __
    > This email has been scanned for all viruses by the MessageLabs
    SkyScan
    > service. For more information on a proactive anti-virus service
    working
    > around the clock, around the globe, visit http://www.messagelabs.com
    >
    ______________________________________________________________________
    __
    >
    >
    > ---
    > You are currently subscribed to ntfsd as: [email protected]
    > To unsubscribe send a blank email to [email protected]
    >
  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    Hi Max,

    What would I need to do to get device change notifications from a driver
    then

    Ceri

    -----Original Message-----
    From: Maxim S. Shatskih [mailto:[email protected]]
    Sent: 29 April 2003 18:41
    To: File Systems Developers
    Subject: [ntfsd] Re: Device Change Notifications

    No, media changes are not tracked by PnP interface arrival
    notifications.

    Max

    ----- Original Message -----
    From: "Ceri Coburn" <[email protected]>
    To: "File Systems Developers" <[email protected]>
    Sent: Tuesday, April 29, 2003 5:27 PM
    Subject: [ntfsd] Device Change Notifications


    > Hi,
    >
    > I am currently writing a CDROM filter driver. I am trying to get
    > notification of a device change (like WM_DEVICE change) so I can
    detect
    > when a CD has been loaded/ejected. Is
    IoRegisterPlugPlayNotification
    > notification the function I'm looking for and if so how exactly do I
    > call this for device change notifications?
    >
    > Regards,
    > Ceri
    >
    >
    ______________________________________________________________________
    __
    > This email has been scanned for all viruses by the MessageLabs
    SkyScan
    > service. For more information on a proactive anti-virus service
    working
    > around the clock, around the globe, visit http://www.messagelabs.com
    >
    ______________________________________________________________________
    __
    >
    >
    > ---
    > You are currently subscribed to ntfsd as: [email protected]
    > To unsubscribe send a blank email to [email protected]
    >



    ---
    You are currently subscribed to ntfsd as: [email protected]
    To unsubscribe send a blank email to [email protected]

    ________________________________________________________________________
    This email has been scanned for all viruses by the MessageLabs SkyScan
    service. For more information on a proactive anti-virus service working
    around the clock, around the globe, visit http://www.messagelabs.com
    ________________________________________________________________________

    ________________________________________________________________________
    This email has been scanned for all viruses by the MessageLabs SkyScan
    service. For more information on a proactive anti-virus service working
    around the clock, around the globe, visit http://www.messagelabs.com
    ________________________________________________________________________
  • OSR_Community_UserOSR_Community_User Member Posts: 110,217
    Media changes? Or device changes?

    ----- Original Message -----
    From: "Ceri Coburn" <[email protected]>
    To: "File Systems Developers" <[email protected]>
    Sent: Wednesday, April 30, 2003 11:25 AM
    Subject: [ntfsd] Re: Device Change Notifications


    > Hi Max,
    >
    > What would I need to do to get device change notifications from a
    driver
    > then
    >
    > Ceri
    >
    > -----Original Message-----
    > From: Maxim S. Shatskih [mailto:[email protected]]
    > Sent: 29 April 2003 18:41
    > To: File Systems Developers
    > Subject: [ntfsd] Re: Device Change Notifications
    >
    > No, media changes are not tracked by PnP interface arrival
    > notifications.
    >
    > Max
    >
    > ----- Original Message -----
    > From: "Ceri Coburn" <[email protected]>
    > To: "File Systems Developers" <[email protected]>
    > Sent: Tuesday, April 29, 2003 5:27 PM
    > Subject: [ntfsd] Device Change Notifications
    >
    >
    > > Hi,
    > >
    > > I am currently writing a CDROM filter driver. I am trying to get
    > > notification of a device change (like WM_DEVICE change) so I can
    > detect
    > > when a CD has been loaded/ejected. Is
    > IoRegisterPlugPlayNotification
    > > notification the function I'm looking for and if so how exactly do
    I
    > > call this for device change notifications?
    > >
    > > Regards,
    > > Ceri
    > >
    > >
    >
    ______________________________________________________________________
    > __
    > > This email has been scanned for all viruses by the MessageLabs
    > SkyScan
    > > service. For more information on a proactive anti-virus service
    > working
    > > around the clock, around the globe, visit
    http://www.messagelabs.com
    > >
    >
    ______________________________________________________________________
    > __
    > >
    > >
    > > ---
    > > You are currently subscribed to ntfsd as: [email protected]
    > > To unsubscribe send a blank email to
    [email protected]
    > >
    >
    >
    >
    > ---
    > You are currently subscribed to ntfsd as: [email protected]
    > To unsubscribe send a blank email to [email protected]
    >
    >
    ______________________________________________________________________
    __
    > This email has been scanned for all viruses by the MessageLabs
    SkyScan
    > service. For more information on a proactive anti-virus service
    working
    > around the clock, around the globe, visit http://www.messagelabs.com
    >
    ______________________________________________________________________
    __
    >
    >
    ______________________________________________________________________
    __
    > This email has been scanned for all viruses by the MessageLabs
    SkyScan
    > service. For more information on a proactive anti-virus service
    working
    > around the clock, around the globe, visit http://www.messagelabs.com
    >
    ______________________________________________________________________
    __
    >
    >
    > ---
    > You are currently subscribed to ntfsd as: [email protected]
    > To unsubscribe send a blank email to [email protected]
    >
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
Writing WDF Drivers 21 Oct 2019 OSR Seminar Space & ONLINE
Internals & Software Drivers 18 Nov 2019 Dulles, VA
Kernel Debugging 30 Mar 2020 OSR Seminar Space
Developing Minifilters 27 Apr 2020 OSR Seminar Space & ONLINE