IMFAsyncResult Interface

Provides information about the result of an asynchronous operation.

Syntax

interface IMFAsyncResult : public IUnknown  

Remarks

Use this interface to complete an asynchronous operation. You get a pointer to this interface when your callback object’s IMFAsyncCallback::Invoke method is called. To complete the operation, pass the IMFAsyncResult pointer to the End... method that corresponds to the Begin... method that starts the operation. For example, if the asynchronous method is named BeginRead, call the EndRead method. For more information, see Calling Asynchronous Methods.

If you are implementing an asynchronous method, call MFCreateAsyncResult to create an instance of this object. For more information, see Writing an Asynchronous Method.

Any custom implementation of this interface must inherit the MFASYNCRESULT structure.

Requirements

Header: Declared in mfobjects.h (include mfidl.h).

Library: Use Mfuuid.lib.