WerGetFlags function (Windows)

Switch View :
ScriptFree
WerGetFlags function

Applies to: desktop apps only

Retrieves the fault reporting settings for the specified process.

Syntax

HRESULT WINAPI WerGetFlags(
  __in   HANDLE hProcess,
  __out  PDWORD pdwFlags
);

Parameters

hProcess [in]

A handle to the process. This handle must have the PROCESS_VM_READ or PROCESS_QUERY_INFORMATION access right.

pdwFlags [out]

This parameter can contain 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 for the specified process. This does not show any UI.

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

Minimum supported server

Windows Server 2008

Header

Werapi.h

Library

Kernel32.lib

DLL

Kernel32.dll

See also

WER Functions
WerSetFlags
Windows Error Reporting

 

 

Send comments about this topic to Microsoft

Build date: 2/7/2012