SetErrorMode function kernel32

THREAD_ERROR_MODE SetErrorMode(
  1. THREAD_ERROR_MODE uMode
)

Controls whether the system will handle the specified types of serious errors or whether the process will handle them.

To learn more, see learn.microsoft.com/windows/win32/api/errhandlingapi/nf-errhandlingapi-seterrormode.

Implementation

@pragma('vm:prefer-inline')
THREAD_ERROR_MODE SetErrorMode(THREAD_ERROR_MODE uMode) =>
    .new(_SetErrorMode(uMode));