The server calls the RpcAsyncRegisterHandle function to register an updated handle with the run-time environment.
#include <rpc.h>
RPC_STATUS RPC_ENTRY RpcAsyncRegisterInfo(
PRPC_ASYNC_STATE pAsync
);
Value | Meaning |
---|---|
RPC_S_OK | Success |
RPC_S_INVALID_ASYNC_HANDLE | The asynchronous handle is invalid. |
After the server manager routine finishes updating asynchronous information, it calls RpcAsyncRegisterInfo to register the updated handle with the run-time environment.
Once registered, a server handle for an asynchronous call remains valid until the server calls the completion routine RpcAsyncCompeteCall.
Asynchronous RPC, RPC_ASYNC_STATE, RpcAsyncAbortCall, RpcAsyncCancelCall, RpcAsyncCompleteCall, RpcAsyncGetCallHandle, RpcAsyncGetCallStatus, RpcAsyncInitializeHandle, RpcServerTestCancel