Completes an asynchronous request for the next event in the queue.
public:
HRESULT EndGetEvent(
IMFAsyncResult *pResult,
IMFMediaEvent **ppEvent
)
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.
Type: HRESULT
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. |
Refer to Media Foundation return codes.
Call this method from inside your application’s IMFAsyncCallback::Invoke method. For example code, see IMFMediaEventGenerator::BeginGetEvent.
Header: Declared in mfobjects.h (include mfidl.h).
Library: Use mfuuid.lib.