Reference

SetThreadErrorMode(3w)

NAME

SetThreadErrorMode (KERNEL32.@)

SYNOPSIS

BOOL SetThreadErrorMode
(
DWORD mode,
LPDWORD oldmode
)

DESCRIPTION

Set the thread local error mode.

PARAMS

mode [In] The new error mode, a bitwise or of SEM_FAILCRITICALERRORS, SEM_NOGPFAULTERRORBOX and SEM_NOOPENFILEERRORBOX.

oldmode [Out] Destination of the old error mode (may be NULL).

RETURNS

Success: TRUE

Failure: FALSE, check GetLastError

IMPLEMENTATION

Declared in "winbase.h".

Implemented in "dlls/kernel32/thread.c".

Debug channel "thread".