GetThreadErrorMode function
Applies to: desktop apps only
Retrieves the error mode for the calling thread.
Syntax
DWORD GetThreadErrorMode(void);
Parameters
This function has no parameters.
Return value
The process error mode. This function returns one of the following values.
| Return code/value | Description |
|---|---|
|
The system does not display the critical-error-handler message box. Instead, the system sends the error to the calling thread. |
|
The system does not display the Windows Error Reporting dialog. |
|
The system does not display a message box when it fails to find a file. Instead, the error is returned to the calling thread. |
Remarks
A thread inherits the error mode of the process in which it is running. To change the error mode for the thread, use the SetThreadErrorMode function.
Requirements
|
Minimum supported client | Windows 7 |
|---|---|
|
Minimum supported server | Windows Server 2008 R2 |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 3/6/2012