This page describes the Asynchronous Call State for RPC calls.
Client Behavior
| State | State name | Action |
|---|---|---|
| C | Make the call | Make the RPC<ul><li>On success go to state WComp</li><li>On exception go to End</li></ul>To fail: go to Can |
| Can | Cancel the call | Call <a href="/windows/desktop/api/Rpcasync/nf-rpcasync-rpcasynccancelcall">RpcAsyncCancelCall</a>Go to WComp |
| WComp | Wait for completion | Wait for notificationCall-complete notification should be received Go to Comp |
| Comp | Completion | Issue <a href="/windows/desktop/api/Rpcasync/nf-rpcasync-rpcasynccompletecall">RpcAsyncCompleteCall</a>Go to End |
| End |
Server Behavior
| State | State name | Action |
|---|---|---|
| D | Dispatch | The call is dispatched by the RPC runtimeProcess Go to Comp To fail fatally (while executing on the RPC thread): Raise exception; go to End To fail gracefully: go to A |
| A | Abort the call | Call RpcAsyncAbortCallGo to End |
| Comp | Completion | Issue RpcAsyncCompleteCallGo to End |
| End |
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
