IMFMediaEventGenerator::EndGetEvent Method

Completes an asynchronous request for the next event in the queue.

Syntax

public:
HRESULT EndGetEvent(
         IMFAsyncResult *pResult,
         IMFMediaEvent **ppEvent
)  

Parameters

pResult
Type: IMFAsyncResult *

Pointer to the IMFAsyncResult interface. Pass in the same pointer that your callback object received in the Invoke method.

ppEvent
Type: IMFMediaEvent **

[out]

Receives a pointer to the IMFMediaEvent interface. The caller must release the interface.

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.
MF_E_SHUTDOWN The object was shut down.

Refer to Media Foundation return codes.

Remarks

Call this method from inside your application’s IMFAsyncCallback::Invoke method. For example code, see IMFMediaEventGenerator::BeginGetEvent.

Requirements

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

Library: Use mfuuid.lib.