IWMDMNotification interface (mswmdm.h)

The optional, application-implemented IWMDMNotification interface allows applications and service providers to receive notifications when either devices or memory storages (such as RAM cards) are connected or disconnected from the computer.

Note  This method will be called only for registered Plug and Play devices. Other device arrivals or departures will not cause this interface to be called.
 
This interface GUID is not properly defined in mssachlp.lib; therefore, you must #include both mswmdm.h and mswmdm_i.c (from wmdm.idl) if implementing this interface, to get the proper definitions.

Inheritance

The IWMDMNotification interface inherits from the IUnknown interface. IWMDMNotification also has these types of members:

Methods

The IWMDMNotification interface has these methods.

 
IWMDMNotification::WMDMMessage

The WMDMMessage method is a callback method implemented by a client, and called by Windows Media Device Manager when a Plug and Play compliant device or storage medium is connected or removed.

Requirements

Requirement Value
Target Platform Windows
Header mswmdm.h

See also

Enabling Notifications

Interfaces for Applications