Windows Dev Center

IMFMediaEventGenerator::EndGetEvent method

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

Syntax


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

Parameters

pResult [in]

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

ppEvent [out]

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 codeDescription
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

Minimum supported client

Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 [desktop apps | Windows Store apps]

Header

Mfobjects.h (include Mfidl.h)

Library

Mfuuid.lib

See also

IMFMediaEventGenerator
Media Event Generators

 

 

Community Additions

ADD
Show:
© 2015 Microsoft