Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.15 KB

raiseexception-function.md

File metadata and controls

44 lines (30 loc) · 1.15 KB
description title ms.date ms.topic f1_keywords helpviewer_keywords ms.assetid
Learn more about: RaiseException Function
RaiseException Function
11/04/2016
reference
internal/Microsoft::WRL::Details::RaiseException
RaiseException function
f9c74f6d-112a-4d2e-900f-622f795d5dbf

RaiseException Function

Supports the WRL infrastructure and is not intended to be used directly from your code.

Syntax

inline void __declspec(noreturn)   RaiseException(
      HRESULT hr,
      DWORD dwExceptionFlags = EXCEPTION_NONCONTINUABLE);

Parameters

hr
The exception code of the exception being raised; that is, the HRESULT of a failed operation.

dwExceptionFlags
A flag that indicates a continuable exception (the flag value is zero), or noncontinuable exception (flag value is nonzero). By default, the exception is noncontinuable.

Remarks

Raises an exception in the calling thread.

For more information, see the Windows RaiseException function.

Requirements

Header: internal.h

Namespace: Microsoft::WRL::Details

See also

Microsoft::WRL::Details Namespace