More corelib cleanup (dotnet/coreclr#26993)
[mono-project.git] / netcore / System.Private.CoreLib / shared / Interop / Windows / Interop.BOOLEAN.cs
blob8158ffabde5f3a1115f51f09e97854f2847d29e6
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 internal static partial class Interop
7 /// <summary>
8 /// Blittable version of Windows BOOLEAN type. It is convenient in situations where
9 /// manual marshalling is required, or to avoid overhead of regular bool marshalling.
10 /// </summary>
11 /// <remarks>
12 /// Some Windows APIs return arbitrary integer values although the return type is defined
13 /// as BOOLEAN. It is best to never compare BOOLEAN to TRUE. Always use bResult != BOOLEAN.FALSE
14 /// or bResult == BOOLEAN.FALSE .
15 /// </remarks>
16 internal enum BOOLEAN : byte
18 FALSE = 0,
19 TRUE = 1,