Partager via


_WMPOCXEvents Interface

[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The _WMPOCXEvents interface provides the same events as the IWMPEvents, IWMPEvents2, IWMPEvents3, and IWMPEvents4 interfaces, but inherits from IDispatch rather than IUnknown. This enables you to receive Windows Media Player event notifications through an IDispatch event sink.

Requirements

Requirement Value
Header
Wmp.h

See also

Handling Events in C++

IWMPEvents Interface

IWMPEvents2 Interface

IWMPEvents3 Interface

IWMPEvents4 Interface