The RpcTryExcept statement provides structured exception handling for RPC applications. If any of the program statements in the RpcTryExcept cause an exception, the statements in the RpcExcept code block are executed. All RpcTryExcept statements must be terminated by the RpcEndExcept statement.
For more information, see RpcExcept.
Windows Vista and later versions of Windows: RpcExceptionFilter is recommended for structured exception handling for the most common exceptions as an alternative to custom filters with RpcExcept.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 2000 Professional [desktop apps only] |
| Minimum supported server | Windows 2000 Server [desktop apps only] |
| Header | Rpc.h |
See also
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.
