WerStoreGetReportCount 函数 (werapi.h)

获取错误报告存储区中的 Windows 错误报告 (WER)报告数。

Syntax

HRESULT WerStoreGetReportCount(
  HREPORTSTORE hReportStore,
  DWORD        *pdwReportCount
);

参数

hReportStore

错误报告存储(以前使用 WerStoreOpen 检索)。

pdwReportCount

报告计数。

返回值

此函数返回 成功时S_OK 或失败时的错误代码,包括以下错误代码。

返回代码 Description
E_INVALID_ARG 其中一个参数不是有效值。
ERROR_NO_MORE_FILES 存储中没有更多错误报告。

要求

Requirement 价值
Header werapi.h
Library nanosrv.lib

另请参阅

Windows 错误报告