RpcRaiseException function (rpcdce.h)

Use the RpcRaiseException function to raise an exception. The function does not return to the caller.

Syntax

void RpcRaiseException(
  RPC_STATUS exception
);

Parameters

exception

Exception code for the exception.

Return value

This function does not return a value.

Note  For a list of valid error codes, see RPC Return Values.
 

Remarks

RpcRaiseException raises an exception. The exception handler can then handle the exception. For more information about handling exceptions, see Making RPC Function Calls.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps | UWP apps]
Minimum supported server Windows 2000 Server [desktop apps | UWP apps]
Target Platform Windows
Header rpcdce.h (include Rpc.h)
Library Rpcrt4.lib
DLL Rpcrt4.dll

See also

RpcAbnormalTermination

RpcExcept

RpcFinally