using System; using System.Runtime.ConstrainedExecution; using System.Runtime.InteropServices; using System.Security; namespace ArchestrAServices.Common; [SuppressUnmanagedCodeSecurity] internal static class NativeMethods { [DllImport("kernel32", SetLastError = true)] [ReliabilityContract(Consistency.WillNotCorruptState, Cer.MayFail)] internal static extern bool CloseHandle(IntPtr handle); }