WerReportSetUIOption function (werapi.h)
Sets the user interface options for the specified Windows Error Reporting (WER) report.
Syntax
HRESULT WerReportSetUIOption(
[in] HREPORT hReportHandle,
[in] WER_REPORT_UI repUITypeID,
[in] PCWSTR pwzValue
);
Parameters
[in] hReportHandle
A handle to the report. This handle is returned by the WerReportCreate function.
[in] repUITypeID
The user interface element to be customized. This parameter can be one of the following values from the WER_REPORT_UI enumeration type.
Value | Meaning |
---|---|
WerUIAdditionalDataDlgHeader | The instructions for the additional data dialog box. |
WerUICloseDlgBody | The contents of the close dialog box. |
WerUICloseDlgButtonText | The text for the button in the close dialog box. |
WerUICloseDlgHeader | The main instructions for the close dialog box. |
WerUICloseText | The text for the link to just terminate the application. |
WerUIConsentDlgBody | The contents of the consent dialog box. |
WerUIConsentDlgHeader | The main instructions for the consent dialog box. |
WerUIIconFilePath | The icon to be displayed in the consent dialog box. |
WerUIOfflineSolutionCheckText | The text for the link to check for a solution when offline. |
WerUIOnlineSolutionCheckText | The text for the link to check for a solution when online. |
[in] pwzValue
A pointer to a Unicode string that specifies the custom text. For more information, see the description of repUITypeID.
Return value
This function returns S_OK on success or an error code on failure.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | werapi.h |
Library | Wer.lib |
DLL | Wer.dll |