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.
4 
5 internal partial class Interop
6 {
7     /// <summary>
8     /// Blittable version of Windows BOOL 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 BOOL. It is best to never compare BOOL to TRUE. Always use bResult != BOOL.FALSE
14     /// or bResult == BOOL.FALSE .
15     /// </remarks>
16     internal enum BOOL : int
17     {
18         FALSE = 0,
19         TRUE = 1,
20     }
21 }
22