RpcAsyncRegisterInfo

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
   );

Parameters

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

Return Values

Value Meaning
RPC_S_OK Success
RPC_S_INVALID_ASYNC_HANDLE The asynchronous handle is invalid.

Remarks

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.

See Also

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