IMFMediaEventGenerator::EndGetEvent method (mfobjects.h)

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

Syntax

HRESULT EndGetEvent(
  [in]  IMFAsyncResult *pResult,
  [out] IMFMediaEvent  **ppEvent
);

Parameters

[in] pResult

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

[out] ppEvent

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

Return value

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

Return code Description
S_OK
The method succeeded.
MF_E_SHUTDOWN
The object was shut down.

Remarks

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

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header mfobjects.h (include Mfidl.h)
Library Mfuuid.lib

See also

IMFMediaEventGenerator

Media Event Generators