Share via


IErrorReportingSettings::GetErrorOptions method

Gets the current reporting behavior of Windows Runtime error functions.

Syntax

HRESULT GetErrorOptions(
  [out, retval] ErrorOptions *flags
);

Parameters

  • flags [out, retval]
    Type: ErrorOptions*

    A bitmask of ErrorOptions values that represents the current error-reporting behavior.

Return value

Type: HRESULT

This method can return one of these values.

Return code Description
S_OK

The error-reporting behavior was retrieved successfully.

E_POINTER

flags is NULL.

E_ACCESSDENIED

The caller does not have the permissions required to attach to the process as a debugger. The caller must have SE_DEBUG_PRIVILEGE or be able to open the process for PROCESS_ALL_ACCESS.

 

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Header

Windows.Foundation.h

IDL

Windows.Foundation.idl

See also

IErrorReportingSettings

SetErrorReportingFlags

ErrorOptions