The RpcAsyncGetCallHandle macro returns the binding handle on an asynchronous remote procedure call..
#include <rpc.h>
PVOID RpcAsyncGetCallHandle(
PRPC_ASYNC_STATE pAsync
);
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.
Asynchronous RPC, RPC_ASYNC_STATE, RpcAsyncAbortCall, RpcAsyncCancelCall, RpcAsyncCompleteCall, RpcAsyncGetCallStatus, RpcAsyncInitializeHandle, RpcAsyncRegisterInfo, RpcServerTestCancel