Export (0) Print
Expand All
Expand Minimize
0 out of 1 rated this helpful - Rate this topic

MFCreateAsyncResult function

Creates an asynchronous result object. Use this function if you are implementing an asynchronous method.

Syntax


HRESULT MFCreateAsyncResult(
  IUnknown *punkObject,
  IMFAsyncCallback *pCallback,
  IUnknown *punkState,
  IMFAsyncResult **ppAsyncResult
);

Parameters

punkObject

Pointer to the object stored in the asynchronous result. This pointer is returned by the IMFAsyncResult::GetObject method. This parameter can be NULL.

pCallback

Pointer to the IMFAsyncCallback interface. This interface is implemented by the caller of the asynchronous method.

punkState

Pointer to the IUnknown interface of a state object. This value is provided by the caller of the asynchronous method. This parameter can be NULL.

ppAsyncResult

Receives a pointer to the IMFAsyncResult interface. The caller must release the interface.

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.

 

Remarks

To invoke the callback specified in pCallback, call the MFInvokeCallback function.

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

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.