Partager via


RpcAsyncGetCallStatus, fonction (rpcasync.h)

Le client appelle la fonction RpcAsyncGetCallStatus pour déterminer la status actuelle d’un appel distant asynchrone.

Syntaxe

RPC_STATUS RpcAsyncGetCallStatus(
  PRPC_ASYNC_STATE pAsync
);

Paramètres

pAsync

Pointeur vers la structure RPC_ASYNC_STATE qui contient des informations d’appel asynchrones.

Valeur retournée

Valeur Signification
RPC_S_OK
L’appel s’est terminé avec succès.
RPC_S_INVALID_ASYNC_HANDLE
Le handle d’appel asynchrone n’est pas valide.
RPC_S_ASYNC_CALL_PENDING
L’appel n’est pas encore terminé.
Autres codes d'erreur
L'appel a échoué. L’application cliente doit appeler RpcAsyncCompleteCall pour recevoir le code d’erreur spécifique à l’application.
 
Note Pour obtenir la liste des codes d’erreur valides, consultez Valeurs de retour RPC.
 

Notes

Cette fonction côté client retourne la status actuelle de l’appel asynchrone. Notez que si la valeur de retour est autre que RPC_S_ASYNC_CALL_PENDING l’appel est terminé.

Spécifications

   
Client minimal pris en charge Windows 2000 Professionnel [applications de bureau | Applications UWP]
Serveur minimal pris en charge Windows 2000 Server [applications de bureau | Applications UWP]
Plateforme cible Windows
En-tête rpcasync.h (inclure Rpc.h)
Bibliothèque Rpcrt4.lib
DLL Rpcrt4.dll

Voir aussi

RPC asynchrone

RPC_ASYNC_STATE

RpcAsyncAbortCall

RpcAsyncCancelCall

RpcAsyncCompleteCall

RpcAsyncGetCallHandle

RpcAsyncInitializeHandle

RpcServerTestCancel