次の方法で共有


IWMDMNotification Interface

banner art

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.

In addition to the methods inherited from IUnknown, the IWMDMNotification interface exposes the following methods.

Method Description
WMDMMessage Called by Windows Media Device Manager when a device or storage medium is connected or removed.

See Also