88 references to BOOL
System.Private.CoreLib (88)
src\libraries\Common\src\Interop\Windows\Kernel32\Interop.FreeEnvironmentStrings.cs (1)
11internal static unsafe partial BOOL FreeEnvironmentStringsW(char* lpszEnvironmentBlock);
src\libraries\Common\src\Interop\Windows\Kernel32\Interop.Globalization.cs (5)
108BOOL bIgnoreCase); 120internal static unsafe partial BOOL GetUserPreferredUILanguages(uint dwFlags, uint* pulNumLanguages, char* pwszLanguagesBuffer, uint* pcchLanguagesBuffer); 127internal static unsafe partial bool EnumSystemLocalesEx(delegate* unmanaged<char*, uint, void*, BOOL> lpLocaleEnumProcEx, uint dwFlags, void* lParam, IntPtr reserved); 131internal static unsafe partial bool EnumTimeFormatsEx(delegate* unmanaged<char*, void*, BOOL> lpTimeFmtEnumProcEx, string lpLocaleName, uint dwFlags, void* lParam); 147internal static unsafe partial bool EnumCalendarInfoExEx(delegate* unmanaged<char*, uint, IntPtr, void*, BOOL> pCalInfoEnumProcExEx, string lpLocaleName, uint Calendar, string? lpReserved, uint CalType, void* lParam);
src\libraries\Common\src\Interop\Windows\Normaliz\Interop.Normalization.cs (1)
12internal static unsafe partial BOOL IsNormalizedString(NormalizationForm normForm, char* source, int length);
src\libraries\System.Private.CoreLib\src\System\Environment.Variables.Windows.cs (2)
129Interop.BOOL success = Interop.Kernel32.FreeEnvironmentStringsW(stringPtr); 130Debug.Assert(success != Interop.BOOL.FALSE);
src\libraries\System.Private.CoreLib\src\System\Globalization\CalendarData.Nls.cs (6)
62private static unsafe Interop.BOOL EnumCalendarInfoCallback(char* lpCalendarInfoString, uint calendar, IntPtr pReserved, void* lParam) 76return Interop.BOOL.TRUE; 80return Interop.BOOL.FALSE; 94private static unsafe Interop.BOOL EnumCalendarsCallback(char* lpCalendarInfoString, uint calendar, IntPtr reserved, void* lParam) 103return Interop.BOOL.TRUE; 107return Interop.BOOL.FALSE;
src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Nls.cs (2)
66bIgnoreCase ? Interop.BOOL.TRUE : Interop.BOOL.FALSE);
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Nls.cs (10)
348private static unsafe Interop.BOOL EnumSystemLocalesProc(char* lpLocaleString, uint flags, void* contextHandle) 358return Interop.BOOL.FALSE; // we found a match, then stop the enumeration 361return Interop.BOOL.TRUE; 365return Interop.BOOL.FALSE; 371private static unsafe Interop.BOOL EnumAllSystemLocalesProc(char* lpLocaleString, uint flags, void* contextHandle) 376return Interop.BOOL.TRUE; 380return Interop.BOOL.FALSE; 392private static unsafe Interop.BOOL EnumTimeCallback(char* lpTimeFormatString, void* lParam) 397return Interop.BOOL.TRUE; 401return Interop.BOOL.FALSE;
src\libraries\System.Private.CoreLib\src\System\Globalization\Normalization.Nls.cs (2)
21Interop.BOOL result; 32return result != Interop.BOOL.FALSE;
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\TypeMapLazyDictionary.cs (10)
79delegate* unmanaged<CallbackContext*, ProcessAttributesCallbackArg*, Interop.BOOL> newExternalTypeEntry, 80delegate* unmanaged<CallbackContext*, ProcessAttributesCallbackArg*, Interop.BOOL> newProxyTypeEntry, 122private static unsafe Interop.BOOL NewExternalTypeEntry(CallbackContext* context, ProcessAttributesCallbackArg* arg) 142return Interop.BOOL.FALSE; // Stop processing. 145return Interop.BOOL.TRUE; // Continue processing. 149private static unsafe Interop.BOOL NewProxyTypeEntry(CallbackContext* context, ProcessAttributesCallbackArg* arg) 177return Interop.BOOL.FALSE; // Stop processing. 184return Interop.BOOL.TRUE; // Continue processing. 189delegate* unmanaged<CallbackContext*, ProcessAttributesCallbackArg*, Interop.BOOL> newExternalTypeEntry, 190delegate* unmanaged<CallbackContext*, ProcessAttributesCallbackArg*, Interop.BOOL> newProxyTypeEntry)
src\System\Enum.CoreCLR.cs (3)
15private static partial void GetEnumValuesAndNames(QCallTypeHandle enumType, ObjectHandleOnStack values, ObjectHandleOnStack names, Interop.BOOL getNames); 114getNames ? Interop.BOOL.TRUE : Interop.BOOL.FALSE);
src\System\Reflection\RuntimeAssembly.cs (2)
256internal static partial Interop.BOOL GetIsCollectible(QCallAssembly assembly); 263return GetIsCollectible(new QCallAssembly(ref runtimeAssembly)) != Interop.BOOL.FALSE;
src\System\Reflection\RuntimeCustomAttributeData.cs (1)
1706new QCallModule(ref decoratedModule)) != Interop.BOOL.FALSE;
src\System\Reflection\RuntimeMethodInfo.CoreCLR.cs (1)
322public override bool IsCollectible => RuntimeMethodHandle.GetIsCollectible(new RuntimeMethodHandleInternal(m_handle)) != Interop.BOOL.FALSE;
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (2)
1227return CanCastTo_NoCacheLookup(srcTH.m_asTAddr, destTH.m_asTAddr) != Interop.BOOL.FALSE; 1231private static partial Interop.BOOL CanCastTo_NoCacheLookup(void* fromTypeHnd, void* toTypeHnd);
src\System\RuntimeHandles.cs (25)
342Interop.BOOL fCtorIsPublicTemp = default; 353ctorIsPublic = fCtorIsPublicTemp != Interop.BOOL.FALSE; 363Interop.BOOL* pfCtorIsPublic); 539private static partial Interop.BOOL GetFields(MethodTable* pMT, Span<IntPtr> data, ref int usedCount); 553bool success = GetFields(typeHandle.AsMethodTable(), buffer, ref countLocal) != Interop.BOOL.FALSE; 737internal static partial void GetInstantiation(QCallTypeHandle type, ObjectHandleOnStack types, Interop.BOOL fAsRuntimeTypeArray); 743GetInstantiation(new QCallTypeHandle(ref nativeHandle), ObjectHandleOnStack.Create(ref types), Interop.BOOL.TRUE); 751GetInstantiation(new QCallTypeHandle(ref nativeHandle), ObjectHandleOnStack.Create(ref types), Interop.BOOL.FALSE); 828internal static partial Interop.BOOL IsCollectible(QCallTypeHandle handle); 858private static partial Interop.BOOL SatisfiesConstraints(QCallTypeHandle paramType, QCallTypeHandle pTypeContext, RuntimeMethodHandleInternal pMethodContext, QCallTypeHandle toType); 863bool result = SatisfiesConstraints(new QCallTypeHandle(ref paramType), new QCallTypeHandle(ref typeContext!), methodContextRaw, new QCallTypeHandle(ref toType)) != Interop.BOOL.FALSE; 1057internal static partial Interop.BOOL GetIsCollectible(RuntimeMethodHandleInternal handle); 1060internal static partial Interop.BOOL IsCAVisibleFromDecoratedType( 1161private static partial void InvokeMethod(ObjectHandleOnStack target, void** arguments, ObjectHandleOnStack sig, Interop.BOOL isConstructor, ObjectHandleOnStack result); 1172isConstructor ? Interop.BOOL.TRUE : Interop.BOOL.FALSE, 1215private static partial void GetMethodInstantiation(RuntimeMethodHandleInternal method, ObjectHandleOnStack types, Interop.BOOL fAsRuntimeTypeArray); 1220GetMethodInstantiation(EnsureNonNullMethodInfo(method).Value, ObjectHandleOnStack.Create(ref types), Interop.BOOL.TRUE); 1228GetMethodInstantiation(method, ObjectHandleOnStack.Create(ref types), Interop.BOOL.TRUE); 1235GetMethodInstantiation(EnsureNonNullMethodInfo(method).Value, ObjectHandleOnStack.Create(ref types), Interop.BOOL.FALSE); 2103private static partial Interop.BOOL AreEqual( 2111sig2._sig, sig2._csig, new QCallTypeHandle(ref sig2._declaringType)) != Interop.BOOL.FALSE; 2169Interop.BOOL required, 2179required ? Interop.BOOL.TRUE : Interop.BOOL.FALSE,
src\System\RuntimeType.CoreCLR.cs (1)
3235return RuntimeTypeHandle.IsCollectible(new QCallTypeHandle(ref thisType)) != Interop.BOOL.FALSE;
src\System\StubHelpers.cs (3)
150Interop.BOOL defaultCharUsed = Interop.BOOL.FALSE; 171if (defaultCharUsed != Interop.BOOL.FALSE)
src\System\Threading\Thread.CoreCLR.cs (11)
93StartInternal(GetNativeHandle(), _startHelper?._maxStackSize ?? 0, _priority, _isThreadPool ? Interop.BOOL.TRUE : Interop.BOOL.FALSE, pThreadName); 99private static unsafe partial void StartInternal(ThreadHandle t, int stackSize, int priority, Interop.BOOL isThreadPool, char* pThreadName); 150private static partial Interop.BOOL YieldInternal(); 152public static bool Yield() => YieldInternal() != Interop.BOOL.FALSE; 205Interop.BOOL res = GetIsBackground(GetNativeHandle()); 207return res != Interop.BOOL.FALSE; 216SetIsBackground(GetNativeHandle(), value ? Interop.BOOL.TRUE : Interop.BOOL.FALSE); 227private static partial Interop.BOOL GetIsBackground(ThreadHandle t); 230private static partial void SetIsBackground(ThreadHandle t, Interop.BOOL value);