RpcAsyncGetCallHandle

The RpcAsyncGetCallHandle macro returns the binding handle on an asynchronous remote procedure call..

#include <rpc.h>
PVOID RpcAsyncGetCallHandle(
    PRPC_ASYNC_STATE  pAsync 
   );

Parameters

pAsync
Pointer to the RPC_ASYNC_STATE structure that contains asynchronous call information.

Remarks

Given an asynchronous handle, it returns the corresponding binding handle. For example, the RpcServerTestCancel function uses RpcAsyncGetCallHandle(pAsync) as a parameter to test for cancels.

See Also

Asynchronous RPC, RPC_ASYNC_STATE, RpcAsyncAbortCall, RpcAsyncCancelCall, RpcAsyncCompleteCall, RpcAsyncGetCallStatus, RpcAsyncInitializeHandle, RpcAsyncRegisterInfo, RpcServerTestCancel