Freigeben über


MFInvokeCallback Function

Invokes a callback method to complete an asynchronous operation.

Syntax

HRESULT MFInvokeCallback(
  IMFAsyncResult *pAsyncResult
);

Parameter

Rückgabewert

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

Rückgabecode Beschreibung
S_OK

The function succeeded.

MF_E_INVALID_WORKQUEUE

Invalid work queue. For more information, see IMFAsyncCallback::GetParameters.

MF_E_SHUTDOWN

The MFShutdown function was called to shut down the Media Foundation platform.

 

Hinweise

If you are implementing an asynchronous method, use this function to invoke the caller's IMFAsyncCallback::Invoke method.

The callback is invoked from a Media Foundation work queue. For more information, see Writing an Asynchronous Method.

The MFShutdown function shuts down the work queue threads, so the callback is not guaranteed to be invoked after MFShutdown is called.

Anforderungen

Mindestens unterstützter Client

Windows Vista

Mindestens unterstützter Server

Windows Server 2008

Header

Mfapi.h

Bibliothek

Mfplat.lib

DLL

Mfplat.dll

Siehe auch

Media Foundation Functions

Asynchronous Callback Methods