设置 Windows 运行时错误函数的报告行为。
Syntax
HRESULT RoSetErrorReportingFlags(
[in] UINT32 flags
);
参数
[in] flags
类型:UINT32
RO_ERROR_REPORTING_FLAGS值的位掩码。
返回值
类型:HRESULT
此函数可以返回其中一个值。
| 返回代码 | Description |
|---|---|
|
错误报告行为已成功设置。 |
|
标志 设置了无效或未定义的位。 |
注解
通过调用 RoGetErrorReportingFlags 函数获取 Windows 运行时错误函数的当前报告行为。
要求
| Requirement | 价值 |
|---|---|
| 最低支持的客户端 | Windows 8 [桌面应用 |UWP 应用] |
| 支持的最低服务器 | Windows Server 2012 [桌面应用 |UWP 应用] |
| 目标平台 | Windows操作系统 |
| Header | roerrorapi.h (包括 Roapi.h) |
| Library | mincore.lib |