Programmatic Windows Error Reporting
Exported by kernel32.dll and defined in werapi.h, the following function lets you change a couple of options for your process:
HRESULT WerSetFlags(DWORD dwFlags);
Table 26-2 lists the four available cumulative options.
Table 26-2. Details of the WerSetFlags Parameter
WER_FAULT_REPORTING_* Options | Description |
---|---|
| When a report is generated, it will not contain the heap content. This might be useful to limit the size of reports. |
| By default, WER suspends all threads in an interactive process so that other threads can’t corrupt data further while an application is faulting. This flag tells WER not to suspend the other threads and is potentially a dangerous flag to use. |
|
Get Windows® via C/C++, Fifth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.