Fonction MFInvokeCallback (mfapi.h)

Appelle une méthode de rappel pour effectuer une opération asynchrone.

Syntaxe

HRESULT MFInvokeCallback(
  IMFAsyncResult *pAsyncResult
);

Paramètres

pAsyncResult

Pointeur vers l’interface IMFAsyncResult . Pour créer cet objet, appelez MFCreateAsyncResult.

Valeur retournée

La fonction retourne un HRESULT. Les valeurs possibles sont notamment celles figurant dans le tableau suivant.

Code de retour Description
S_OK
La fonction a réussi.
MF_E_INVALID_WORKQUEUE
File d’attente de travail non valide. Pour plus d’informations, consultez IMFAsyncCallback ::GetParameters.
MF_E_SHUTDOWN
La fonction MFShutdown a été appelée pour arrêter la plateforme Media Foundation.

Remarques

Si vous implémentez une méthode asynchrone, utilisez cette fonction pour appeler la méthode IMFAsyncCallback ::Invoke de l’appelant.

Le rappel est appelé à partir d’une file d’attente de travail Media Foundation. Pour plus d’informations, consultez Écriture d’une méthode asynchrone.

La fonction MFShutdown arrête les threads de file d’attente de travail, de sorte que le rappel n’est pas garanti d’être appelé après l’appel de MFShutdown .

Configuration requise

Condition requise Valeur
Client minimal pris en charge Windows Vista [applications de bureau | applications UWP]
Serveur minimal pris en charge Windows Server 2008 [applications de bureau | applications UWP]
Plateforme cible Windows
En-tête mfapi.h
Bibliothèque Mfplat.lib
DLL Mfplat.dll

Voir aussi

Méthodes de rappel asynchrones

Fonctions Media Foundation