1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
5 using System
.Runtime
.InteropServices
;
7 internal static partial class Interop
9 internal static partial class Kernel32
11 [DllImport(Libraries
.Kernel32
, SetLastError
= true, ExactSpelling
= true)]
12 internal static extern bool SetThreadErrorMode(uint dwNewMode
, out uint lpOldMode
);
14 internal const uint SEM_FAILCRITICALERRORS
= 1;