117 references to BOOL
System.Private.CoreLib (117)
LibraryImports.g.cs (33)
369private static extern partial void GetEnumValuesAndNames(global::System.Runtime.CompilerServices.QCallTypeHandle enumType, global::System.Runtime.CompilerServices.ObjectHandleOnStack values, global::System.Runtime.CompilerServices.ObjectHandleOnStack names, global::Interop.BOOL getNames); 1993private static extern partial global::Interop.BOOL CanCastTo_NoCacheLookup(void* fromTypeHnd, void* toTypeHnd); 2683private static extern partial void GetActivationInfo(global::System.Runtime.CompilerServices.ObjectHandleOnStack pRuntimeType, delegate*<void*, object> * ppfnAllocator, void** pvAllocatorFirstArg, delegate*<object, void> * ppfnRefCtor, delegate*<ref byte, void> * ppfnValueCtor, global::Interop.BOOL* pfCtorIsPublic); 2723private static partial global::Interop.BOOL GetFields(global::System.Runtime.CompilerServices.MethodTable* pMT, global::System.Span<nint> data, ref int usedCount) 2725global::Interop.BOOL __retVal; 2736static extern unsafe global::Interop.BOOL __PInvoke(global::System.Runtime.CompilerServices.MethodTable* __pMT_native, nint* __data_native, int* __usedCount_native); 2855internal static extern partial void GetInstantiation(global::System.Runtime.CompilerServices.QCallTypeHandle type, global::System.Runtime.CompilerServices.ObjectHandleOnStack types, global::Interop.BOOL fAsRuntimeTypeArray); 2931private static extern partial global::Interop.BOOL SatisfiesConstraints(global::System.Runtime.CompilerServices.QCallTypeHandle paramType, global::System.Runtime.CompilerServices.QCallTypeHandle pTypeContext, global::System.RuntimeMethodHandleInternal pMethodContext, global::System.Runtime.CompilerServices.QCallTypeHandle toType); 2955internal static extern partial global::Interop.BOOL IsCAVisibleFromDecoratedType(global::System.Runtime.CompilerServices.QCallTypeHandle attrTypeHandle, global::System.RuntimeMethodHandleInternal attrCtor, global::System.Runtime.CompilerServices.QCallTypeHandle sourceTypeHandle, global::System.Runtime.CompilerServices.QCallModule sourceModule); 2971private static extern partial void InvokeMethod(global::System.Runtime.CompilerServices.ObjectHandleOnStack target, void** arguments, global::System.Runtime.CompilerServices.ObjectHandleOnStack sig, global::Interop.BOOL isConstructor, global::System.Runtime.CompilerServices.ObjectHandleOnStack result); 2979private static extern partial void GetMethodInstantiation(global::System.RuntimeMethodHandleInternal method, global::System.Runtime.CompilerServices.ObjectHandleOnStack types, global::Interop.BOOL fAsRuntimeTypeArray); 3228private static extern partial global::Interop.BOOL AreEqual(void* sig1, int csig1, global::System.Runtime.CompilerServices.QCallTypeHandle type1, void* sig2, int csig2, global::System.Runtime.CompilerServices.QCallTypeHandle type2); 3236private static extern partial void GetCustomModifiersAtOffset(global::System.Runtime.CompilerServices.ObjectHandleOnStack sigObj, int offset, global::Interop.BOOL required, global::System.Runtime.CompilerServices.ObjectHandleOnStack result); 3442private static unsafe extern partial global::Interop.BOOL StartInternal(global::System.Threading.ThreadHandle t, int stackSize, int priority, global::Interop.BOOL isThreadPool, char* pThreadName, global::System.Runtime.CompilerServices.ObjectHandleOnStack exception); 3466private static extern partial global::Interop.BOOL YieldInternal(); 3509private static extern partial global::Interop.BOOL GetIsBackground(global::System.Threading.ThreadHandle t); 3517private static extern partial void SetIsBackground(global::System.Threading.ThreadHandle t, global::Interop.BOOL value); 3829private static unsafe extern partial void ProcessAttributes(global::System.Runtime.CompilerServices.QCallAssembly assembly, global::System.Runtime.CompilerServices.QCallTypeHandle groupType, delegate* unmanaged<global::System.Runtime.InteropServices.TypeMapLazyDictionary.CallbackContext*, global::System.Runtime.InteropServices.TypeMapLazyDictionary.ProcessAttributesCallbackArg*, global::Interop.BOOL> newExternalTypeEntry, delegate* unmanaged<global::System.Runtime.InteropServices.TypeMapLazyDictionary.CallbackContext*, global::System.Runtime.InteropServices.TypeMapLazyDictionary.ProcessAttributesCallbackArg*, global::Interop.BOOL> newProxyTypeEntry, global::System.Runtime.InteropServices.TypeMapLazyDictionary.CallbackContext* context); 4693internal static unsafe partial int FindStringOrdinal(uint dwFindStringOrdinalFlags, char* lpStringSource, int cchSource, char* lpStringValue, int cchValue, global::Interop.BOOL bIgnoreCase) 4707static extern unsafe int __PInvoke(uint __dwFindStringOrdinalFlags_native, char* __lpStringSource_native, int __cchSource_native, char* __lpStringValue_native, int __cchValue_native, global::Interop.BOOL __bIgnoreCase_native); 4738internal static unsafe extern partial global::Interop.BOOL GetUserPreferredUILanguages(uint dwFlags, uint* pulNumLanguages, char* pwszLanguagesBuffer, uint* pcchLanguagesBuffer); 4767internal static unsafe partial bool EnumSystemLocalesEx(delegate* unmanaged<char*, uint, void*, global::Interop.BOOL> lpLocaleEnumProcEx, uint dwFlags, void* lParam, nint reserved) 4780static extern unsafe int __PInvoke(delegate* unmanaged<char*, uint, void*, global::Interop.BOOL> __lpLocaleEnumProcEx_native, uint __dwFlags_native, void* __lParam_native, nint __reserved_native); 4789internal static unsafe partial bool EnumTimeFormatsEx(delegate* unmanaged<char*, void*, global::Interop.BOOL> lpTimeFmtEnumProcEx, string lpLocaleName, uint dwFlags, void* lParam) 4804static extern unsafe int __PInvoke(delegate* unmanaged<char*, void*, global::Interop.BOOL> __lpTimeFmtEnumProcEx_native, ushort* __lpLocaleName_native, uint __dwFlags_native, void* __lParam_native); 4873internal static unsafe partial bool EnumCalendarInfoExEx(delegate* unmanaged<char*, uint, nint, void*, global::Interop.BOOL> pCalInfoEnumProcExEx, string lpLocaleName, uint Calendar, string lpReserved, uint CalType, void* lParam) 4889static extern unsafe int __PInvoke(delegate* unmanaged<char*, uint, nint, void*, global::Interop.BOOL> __pCalInfoEnumProcExEx_native, ushort* __lpLocaleName_native, uint __Calendar_native, ushort* __lpReserved_native, uint __CalType_native, void* __lParam_native); 4995internal static unsafe partial global::Interop.BOOL IsNormalizedString(global::System.Text.NormalizationForm normForm, char* source, int length) 4998global::Interop.BOOL __retVal; 5009static extern unsafe global::Interop.BOOL __PInvoke(global::System.Text.NormalizationForm __normForm_native, char* __source_native, int __length_native); 5518internal static unsafe extern partial global::Interop.BOOL FreeEnvironmentStringsW(char* lpszEnvironmentBlock);
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\RuntimeCustomAttributeData.cs (1)
1706new QCallModule(ref decoratedModule)) != Interop.BOOL.FALSE;
src\System\Runtime\CompilerServices\RuntimeHelpers.CoreCLR.cs (2)
1284return CanCastTo_NoCacheLookup(srcTH.m_asTAddr, destTH.m_asTAddr) != Interop.BOOL.FALSE; 1288private static partial Interop.BOOL CanCastTo_NoCacheLookup(void* fromTypeHnd, void* toTypeHnd);
src\System\RuntimeHandles.cs (23)
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); 878private static partial Interop.BOOL SatisfiesConstraints(QCallTypeHandle paramType, QCallTypeHandle pTypeContext, RuntimeMethodHandleInternal pMethodContext, QCallTypeHandle toType); 883bool result = SatisfiesConstraints(new QCallTypeHandle(ref paramType), new QCallTypeHandle(ref typeContext!), methodContextRaw, new QCallTypeHandle(ref toType)) != Interop.BOOL.FALSE; 1080internal static partial Interop.BOOL IsCAVisibleFromDecoratedType( 1181private static partial void InvokeMethod(ObjectHandleOnStack target, void** arguments, ObjectHandleOnStack sig, Interop.BOOL isConstructor, ObjectHandleOnStack result); 1192isConstructor ? Interop.BOOL.TRUE : Interop.BOOL.FALSE, 1235private static partial void GetMethodInstantiation(RuntimeMethodHandleInternal method, ObjectHandleOnStack types, Interop.BOOL fAsRuntimeTypeArray); 1240GetMethodInstantiation(EnsureNonNullMethodInfo(method).Value, ObjectHandleOnStack.Create(ref types), Interop.BOOL.TRUE); 1248GetMethodInstantiation(method, ObjectHandleOnStack.Create(ref types), Interop.BOOL.TRUE); 1255GetMethodInstantiation(EnsureNonNullMethodInfo(method).Value, ObjectHandleOnStack.Create(ref types), Interop.BOOL.FALSE); 2126private static partial Interop.BOOL AreEqual( 2134sig2._sig, sig2._csig, new QCallTypeHandle(ref sig2._declaringType)) != Interop.BOOL.FALSE; 2192Interop.BOOL required, 2202required ? Interop.BOOL.TRUE : Interop.BOOL.FALSE,
src\System\StubHelpers.cs (3)
152Interop.BOOL defaultCharUsed = Interop.BOOL.FALSE; 173if (defaultCharUsed != Interop.BOOL.FALSE)
src\System\Threading\Thread.CoreCLR.cs (13)
102if (StartInternal(GetNativeHandle(), _startHelper?._maxStackSize ?? 0, _priority, _isThreadPool ? Interop.BOOL.TRUE : Interop.BOOL.FALSE, pThreadName, ObjectHandleOnStack.Create(ref exception)) == Interop.BOOL.FALSE) 111private static unsafe partial Interop.BOOL StartInternal(ThreadHandle t, int stackSize, int priority, Interop.BOOL isThreadPool, char* pThreadName, ObjectHandleOnStack exception); 161private static partial Interop.BOOL YieldInternal(); 163public static bool Yield() => YieldInternal() != Interop.BOOL.FALSE; 216Interop.BOOL res = GetIsBackground(GetNativeHandle()); 218return res != Interop.BOOL.FALSE; 227SetIsBackground(GetNativeHandle(), value ? Interop.BOOL.TRUE : Interop.BOOL.FALSE); 238private static partial Interop.BOOL GetIsBackground(ThreadHandle t); 241private static partial void SetIsBackground(ThreadHandle t, Interop.BOOL value);