Compartir a través de


IWMPUserEventSink interface (wmpservices.h)

[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 IWMPUserEventSink interface receives event notifications from a custom video presenter. An application that embeds the Windows Media Player control, and provides a custom video presenter, can implement the IWMPUserEventSink interface.

The Windows Media Player control retrieves a pointer to the application's IWMPUserEventSink interface by calling IServiceProvider::QueryService, passing __uuidof(IWMPUserEventSink) in the riid parameter. Therefore, an application that implements the IWMPUserEventSink interface must also implement the IServiceProvider interface.

Inheritance

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

Methods

The IWMPUserEventSink interface has these methods.

 
IWMPUserEventSink::NotifyUserEvent

The NotifyUserEvent method notifies an application of an event generated by a custom video presenter that the application provided to the Enhanced Video Renderer (EVR).

Requirements

Requirement Value
Target Platform Windows
Header wmpservices.h

See also

Interfaces