IErrorReportingSettings::SetErrorOptions method
Sets the reporting behavior of Windows Runtime error functions.
Syntax
HRESULT SetErrorOptions(
[in] ErrorOptions flags
);
Parameters
flags [in]
Type: ErrorOptionsA bitmask of ErrorOptions values.
Return value
Type: HRESULT
This method can return one of these values.
Return code | Description |
---|---|
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 |