Freigeben über


IMFAsyncResult Interface

Provides information about the result of an asynchronous operation.

Mitglieder

IMFAsyncResultSchnittstelle erbt von der IUnknown-Schnittstelle. IMFAsyncResult umfasst auch die folgenden Typen von Mitgliedern:

  • Methoden

Methoden

IMFAsyncResultSchnittstelle umfasst die folgenden Methoden.

Methode Beschreibung
GetObject

Returns an object associated with the asynchronous operation.

GetState

Returns the state object specified by the caller in the asynchronous Begin method.

GetStateNoAddRef

Returns the state object specified by the caller in the asynchronous Begin method, without incrementing the object's reference count.

GetStatus

Returns the status of the asynchronous operation.

SetStatus

Sets the status of the asynchronous operation.

 

Hinweise

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.

This interface is available on the following platforms if the Windows Media Format 11 SDK redistributable components are installed:

  • Windows XP mit Service Pack 2 (SP2) und höher.
  • Windows XP Media Center Edition 2005 with KB900325 (Windows XP Media Center Edition 2005) and KB925766 (Oktober 2006 Updaterollup für Windows XP Media Center Edition) installed.

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

Media Foundation Interfaces

Asynchronous Callback Methods