RtlSetThreadErrorMode - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTRTL_H

NTSYSAPI
NTSTATUS
NTAPI
RtlSetThreadErrorMode(
    _In_ ULONG NewMode,
    _Out_opt_ PULONG OldMode
    );

#endif

View code on GitHub

Changes the error mode for the current thread. The value controls how the system should handle serious errors.

Parameters

Supported flags

Implementation details

This function sets the HardErrorMode field in TEB.

Related Win32 API

See also