WerStoreGetReportCount function (werapi.h)

Gets the number of Windows Error Reporting (WER) reports in the error report store.

Syntax

HRESULT WerStoreGetReportCount(
  HREPORTSTORE hReportStore,
  DWORD        *pdwReportCount
);

Parameters

hReportStore

The error report store (previously retrieved with WerStoreOpen).

pdwReportCount

The report count.

Return value

This function returns S_OK on success or an error code on failure, including the following error code.

Return code Description
E_INVALID_ARG One of the arguments is not a valid value.
ERROR_NO_MORE_FILES There are no more error reports in the store.

Requirements

Requirement Value
Header werapi.h

See also

Windows Error Reporting