Opens the collection of stored error reports.
HRESULT WerStoreOpen( REPORT_STORE_TYPES repStoreType, PHREPORTSTORE phReportStore );
The type of report store to open. See Remarks for details.
A pointer to a report store. On a successful call, this will point to the retrieved report store.
This function returns S_OK on success or an error code on failure, including the following error code.
||One of the arguments is not a valid value.|
A storeType value of E_STORE_MACHINE_QUEUE opens the queue of all error reports on the machine that have not yet been sent to Microsoft. A value of E_STORE_MACHINE_ARCHIVE opens the store of error reports that have already been sent.
The Windows Error Report (WER) Store is the queue of error reports that have been marked to be sent to Microsoft but have not yet been uploaded. The upload of an error report can be postponed under a number of circumstances. The WerStore functions allow developers to access the stored reports and query the status of each one.
|Minimum supported client||Windows 10, version 1703 [desktop apps only]|
|Minimum supported server||Windows Server 2016 [desktop apps only]|