Freigeben über


IMFMediaEventGenerator::EndGetEvent Method

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

Syntax

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

Parameter

  • 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.

Rückgabewert

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

Rückgabecode Beschreibung
S_OK

The method succeeded.

MF_E_SHUTDOWN

The object was shut down.

 

Hinweise

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

Anforderungen

Mindestens unterstützter Client

Windows Vista

Mindestens unterstützter Server

Windows Server 2008

Header

Mfobjects.h (include Mfidl.h)

Bibliothek

Mfuuid.lib

Siehe auch

IMFMediaEventGenerator

Media Event Generators