Compartilhar via


MFP_EVENT_HEADER structure (mfplay.h)

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

Contains information that is common to every type of MFPlay event.

Syntax

typedef struct MFP_EVENT_HEADER {
  MFP_EVENT_TYPE        eEventType;
  HRESULT               hrEvent;
  IMFPMediaPlayer       *pMediaPlayer;
  MFP_MEDIAPLAYER_STATE eState;
  IPropertyStore        *pPropertyStore;
} MFP_EVENT_HEADER;

Members

eEventType

The type of event, specified as a member of the MFP_EVENT_TYPE enumeration.

hrEvent

Error or success code for the operation that caused the event.

pMediaPlayer

Pointer to the IMFPMediaPlayer interface of the MFPlay player object that sent the event.

eState

The new state of the MFPlay player object, specified as a member of the MFP_MEDIAPLAYER_STATE enumeration.

pPropertyStore

A pointer to the IPropertyStore interface of a property store object. The property store is used to hold additional event data for some event types. This member might be NULL.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Header mfplay.h

See also

IMFPMediaPlayerCallback

Media Foundation Structures

Using MFPlay for Audio/Video Playback