IMFMediaEvent::GetType Method

Retrieves the event type. The event type indicates what happened to trigger the event. It also defines the meaning of the event value.

Syntax

public:
HRESULT GetType(
         MediaEventType *pmet
)  

Parameters

pmet
Type: MediaEventType *

[out]

Receives the event type. For a list of event types, see Media Foundation Events.

Return value

Type: HRESULT 

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return codes
Return code Description
S_OK The method succeeded.

Refer to Media Foundation return codes.

Remarks

Requirements

Header: Declared in mfobjects.h (include mfidl.h).

Library: Use mfuuid.lib.