WerStoreGetFirstReportKey function

Gets a reference to the first report in the report store.

Syntax


HRESULT WINAPI WerStoreGetFirstReportKey(
   HREPORTSTORE store,
   PCWSTR*      reportKey
);

Parameters

store

The error report store (previously retrieved with WerStoreOpen).

reportKey

A pointer to the report key string. On a successful call, this will point to the retrieved report key.

Return value

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

Return codeDescription
E_INVALID_ARG

One of the arguments is not a valid value.

ERROR_NO_MORE_FILES

There are no error reports in the store.

 

Requirements

Minimum supported client

Windows 10, version 1703 [desktop apps only]

Minimum supported server

Windows Server 2016 [desktop apps only]

Header

Werapi.h

Library

Wer.lib

DLL

Wer.dll

See also

WER Functions
WerStoreOpen
WerStoreGetNextReportKey
Windows Error Reporting

 

 

Show: