Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IErrorReportingSettings::SetErrorOptions method

Sets the reporting behavior of Windows Runtime error functions.

Syntax


HRESULT SetErrorOptions(
  [in] ErrorOptions flags
);

Parameters

flags [in]

Type: ErrorOptions

A bitmask of ErrorOptions values.

Return value

Type: HRESULT

This method can return one of these values.

Return codeDescription
S_OK

The error-reporting behavior was set successfully.

E_INVALIDARG

flags has invalid or undefined bits set.

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
ErrorOptions

 

 

Show:
© 2017 Microsoft