Export (0) Print
Expand All
Expand Minimize

MFInvokeCallback function

Invokes a callback method to complete an asynchronous operation.

Syntax


HRESULT MFInvokeCallback(
  IMFAsyncResult *pAsyncResult
);

Parameters

pAsyncResult

Pointer to the IMFAsyncResult interface. To create this object, call MFCreateAsyncResult.

Return value

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

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

 

Remarks

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.

Windows Phone 8: This API is supported.

Windows Phone 8.1: This API is supported.

Requirements

Minimum supported client

Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 [desktop apps | Windows Store apps]

Header

Mfapi.h

Library

Mfplat.lib

DLL

Mfplat.dll

See also

Media Foundation Functions
Asynchronous Callback Methods

 

 

Community Additions

ADD
Show:
© 2014 Microsoft