The RpcExceptionCode function returns the exception code of an exception.
unsigned long RpcExceptionCode(VOID);
The RpcExceptionCode function can only be called from within the expression and exception statements of an RpcTryExcept exception handler.
No value is returned.
Windows NT: Yes
Windows CE: Unsupported.
Header: Declared in rpc.h.