Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

WerSetFlags function

Sets the fault reporting settings for the current process.

Syntax


HRESULT WINAPI WerSetFlags(
  _In_ DWORD dwFlags
);

Parameters

dwFlags [in]

The fault reporting settings. You can specify one or more of the following values:

ValueMeaning
WER_FAULT_REPORTING_FLAG_DISABLE_THREAD_SUSPENSION

Do not suspend the process threads before reporting the error.

WER_FAULT_REPORTING_FLAG_NOHEAP

Do not collect heap information in the event of an application crash or non-response.

WER_FAULT_REPORTING_FLAG_QUEUE

Queue critical reports.

WER_FAULT_REPORTING_FLAG_QUEUE_UPLOAD

Queue critical reports and upload from the queue.

WER_FAULT_REPORTING_ALWAYS_SHOW_UI

Always show error reporting UI for this process. This is applicable for interactive applications only.

 

Return value

This function returns S_OK on success or an error code on failure.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Werapi.h

Library

Kernel32.lib

DLL

Kernel32.dll

See also

WER Functions
WerGetFlags
Windows Error Reporting

 

 

Community Additions

ADD
Show:
© 2015 Microsoft