diff --git a/Shared/Win32/SECUR32.cs b/Shared/Win32/SECUR32.cs index bd8e50cdd..38e951949 100644 --- a/Shared/Win32/SECUR32.cs +++ b/Shared/Win32/SECUR32.cs @@ -316,7 +316,6 @@ protected override bool ReleaseHandle() } [DllImport("secur32.dll", SetLastError = true)] - [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)] [ResourceExposure(ResourceScope.None)] internal static extern int LsaDeregisterLogonProcess(IntPtr handle); diff --git a/Shared/Win32/User32.cs b/Shared/Win32/User32.cs index 2011d0a15..4ce0befbf 100644 --- a/Shared/Win32/User32.cs +++ b/Shared/Win32/User32.cs @@ -1211,11 +1211,9 @@ protected override bool ReleaseHandle() } [return: MarshalAs(UnmanagedType.Bool)] - [ReliabilityContract(Consistency.WillNotCorruptState, Cer.MayFail)] [DllImport("user32", CharSet = CharSet.Unicode, SetLastError = true)] public static extern bool CloseWindowStation(IntPtr hWinsta); - [ReliabilityContract(Consistency.WillNotCorruptState, Cer.MayFail)] [DllImport("user32", CharSet = CharSet.Unicode, SetLastError = true)] public static extern SafeWindowStationHandle OpenWindowStation([MarshalAs(UnmanagedType.LPTStr)] string lpszWinSta, [MarshalAs(UnmanagedType.Bool)] bool fInherit, ACCESS_MASK dwDesiredAccess);