662 references to BOOL
ComDisabled.Tests (1)
Control.ActiveXImplTests.cs (1)
26HRESULT hr = persistStream.Save(istream.Value, fClearDirty: BOOL.FALSE);
PresentationCore (2)
System\Windows\dataobject.cs (2)
16using BOOL = Windows.Win32.Foundation.BOOL; 618HRESULT Com.IDataObject.Interface.SetData(Com.FORMATETC* pformatetc, Com.STGMEDIUM* pmedium, BOOL fRelease) =>
System.Drawing.Common.Tests (1)
Helpers.cs (1)
151PInvokeCore.GetMonitorInfo(hmonitor, ref info).Should().Be(BOOL.TRUE);
System.Private.Windows.Core (50)
System\Private\Windows\Ole\Composition.cs (1)
189public HRESULT SetData(FORMATETC* pformatetc, STGMEDIUM* pmedium, BOOL fRelease) => _nativeDataObject.SetData(pformatetc, pmedium, fRelease);
System\Private\Windows\Ole\Composition.ManagedToNativeAdapter.cs (1)
194public HRESULT SetData(FORMATETC* pformatetc, STGMEDIUM* pmedium, BOOL fRelease)
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (1)
82public HRESULT SetData(Com.FORMATETC* pformatetc, Com.STGMEDIUM* pmedium, BOOL fRelease)
System\Private\Windows\Ole\Composition.RuntimeToNativeAdapter.cs (1)
129HRESULT Com.IDataObject.Interface.SetData(Com.FORMATETC* pformatetc, Com.STGMEDIUM* pmedium, BOOL fRelease)
System\Private\Windows\Ole\DragDropHelper.cs (3)
135return (basePtr is not null) && (*(BOOL*)basePtr == true); 203hGlobal = PInvokeCore.GlobalAlloc(GMEM_MOVEABLE | GMEM_ZEROINIT, (nuint)sizeof(BOOL)) 218*(BOOL*)basePtr = value;
Windows\Win32\Foundation\BOOL.cs (4)
10public static BOOL TRUE { get; } = new(true); 12public static BOOL FALSE { get; } = new(false); 14public static bool operator true(BOOL value) => value.Value != 0; 16public static bool operator false(BOOL value) => value.Value == 0;
Windows\Win32\Foundation\LPARAM.cs (1)
13public static explicit operator LPARAM(BOOL value) => new((nint)value);
Windows\Win32\Foundation\LRESULT.cs (3)
16public static explicit operator BOOL(LRESULT value) => (BOOL)value.Value; 17public static explicit operator LRESULT(BOOL value) => new((nint)value);
Windows\Win32\Foundation\WPARAM.cs (3)
21public static explicit operator BOOL(WPARAM value) => (BOOL)(nint)value.Value; 22public static explicit operator WPARAM(BOOL value) => new((nuint)(nint)value);
Windows\Win32\Graphics\GdiPlus\GdiplusStartupInputEx.cs (2)
16result.Base.SuppressBackgroundThread = BOOL.FALSE; 17result.Base.SuppressExternalCodecs = BOOL.FALSE;
Windows\Win32\PInvokeCore.BitBlt.cs (4)
9public static BOOL BitBlt<T>( 20BOOL result = BitBlt( 35public static BOOL BitBlt<T>( 46BOOL result = BitBlt(
Windows\Win32\PInvokeCore.DragAcceptFiles.cs (2)
8/// <inheritdoc cref="DragAcceptFiles(HWND, BOOL)"/> 9public static void DragAcceptFiles<T>(T hWnd, BOOL fAccept) where T : IHandle<HWND>
Windows\Win32\PInvokeCore.DrawIcon.cs (2)
8public static BOOL DrawIcon<T>(HDC hDC, int x, int y, T hIcon) 15BOOL result = DrawIconEx(hDC, x, y, hIcon, 0, 0, DI_FLAGS.DI_NORMAL | DI_FLAGS.DI_DEFAULTSIZE);
Windows\Win32\PInvokeCore.DrawIconEx.cs (2)
9public static BOOL DrawIconEx<T>( 25BOOL result = DrawIconEx(hDC, xLeft, yTop, hIcon.Handle, cxWidth, cyWidth, 0, HBRUSH.Null, diFlags);
Windows\Win32\PInvokeCore.EnumChildWindows.cs (3)
11public delegate BOOL EnumChildWindowsCallback(HWND hWnd); 13public static unsafe BOOL EnumChildWindows<T>(T hwndParent, EnumChildWindowsCallback callback) 32private static BOOL EnumChildWindowsNativeCallback(HWND hWnd, LPARAM lParam)
Windows\Win32\PInvokeCore.EnumDisplayMonitors.cs (2)
13public static BOOL EnumDisplayMonitors(EnumDisplayMonitorsCallback callBack) 27private static BOOL EnumDisplayMonitorsNativeCallback(HMONITOR monitor, HDC hdc, RECT* lprcMonitor, LPARAM lParam)
Windows\Win32\PInvokeCore.EnumThreadWindows.cs (3)
11public delegate BOOL EnumThreadWindowsCallback(HWND hWnd); 16public static unsafe BOOL EnumCurrentThreadWindows(EnumThreadWindowsCallback callback) 33private static BOOL HandleEnumThreadWindowsNativeCallback(HWND hWnd, LPARAM lParam)
Windows\Win32\PInvokeCore.EnumWindows.cs (3)
11public delegate BOOL EnumWindowsCallback(HWND hWnd); 13public static unsafe BOOL EnumWindows(EnumWindowsCallback callback) 30private static BOOL EnumWindowsNativeCallback(HWND hWnd, LPARAM lParam)
Windows\Win32\PInvokeCore.GetClientRect.cs (2)
9public static BOOL GetClientRect<T>(T hWnd, out RECT lpRect) 12BOOL result = GetClientRect(hWnd.Handle, out lpRect);
Windows\Win32\PInvokeCore.GetWindowRect.cs (2)
9public static BOOL GetWindowRect<T>(T hWnd, out RECT lpRect) where T : IHandle<HWND> 11BOOL result = GetWindowRect(hWnd.Handle, out lpRect);
Windows\Win32\PInvokeCore.PeekMessage.cs (2)
9public static unsafe BOOL PeekMessage<T>( 17BOOL result = PeekMessage(lpMsg, hWnd.Handle, wMsgFilterMin, wMsgFilterMax, wRemoveMsg);
Windows\Win32\PInvokeCore.PostMessage.cs (2)
9public static BOOL PostMessage<T>( 16BOOL result = PostMessage(hWnd.Handle, (uint)Msg, wParam, lParam);
Windows\Win32\PInvokeCore.SystemParametersInfo.cs (1)
31BOOL nativeBool = value;
System.Private.Windows.Core.Tests (4)
System\Private\Windows\Ole\DataObjectProxy.cs (2)
51public HRESULT SetData(FORMATETC* pformatetc, STGMEDIUM* pmedium, BOOL fRelease) => _original->SetData(pformatetc, pmedium, fRelease); 144private static unsafe HRESULT SetData(IDataObject* @this, FORMATETC* pFormatetc, STGMEDIUM* pMedium, BOOL fRelease) =>
System\Private\Windows\Ole\NativeDataObjectMock.cs (1)
15public virtual HRESULT SetData(FORMATETC* pformatetc, STGMEDIUM* pmedium, BOOL fRelease) => throw new NotImplementedException();
System\Private\Windows\Ole\TestDataObject.cs (1)
121public unsafe HRESULT SetData(FORMATETC* pformatetc, STGMEDIUM* pmedium, BOOL fRelease) => _innerData.SetData(pformatetc, pmedium, fRelease);
System.Private.Windows.GdiPlus (1)
Windows\Win32\Graphics\GdiPlus\GpRegionExtensions.cs (1)
33BOOL isInfinite;
System.Windows.Forms (209)
System\Windows\Forms\Accessibility\AccessibleObject.cs (15)
807internal virtual HRESULT GetTextCaretRange(BOOL* isActive, ITextRangeProvider** pRetVal) => HRESULT.E_NOTIMPL; 1362HRESULT ITextProvider2.Interface.GetCaretRange(BOOL* isActive, ITextRangeProvider** pRetVal) => GetTextCaretRange(isActive, pRetVal); 1384HRESULT IValueProvider.Interface.get_IsReadOnly(BOOL* pRetVal) 2558/// <inheritdoc cref="IOleWindow.ContextSensitiveHelp(BOOL)"/> 2562HRESULT IOleWindow.Interface.ContextSensitiveHelp(BOOL fEnterMode) 3068HRESULT IRangeValueProvider.Interface.get_IsReadOnly(BOOL* pRetVal) 3138HRESULT ISelectionProvider.Interface.get_CanSelectMultiple(BOOL* pRetVal) 3145*pRetVal = CanSelectMultiple ? BOOL.TRUE : BOOL.FALSE; 3149HRESULT ISelectionProvider.Interface.get_IsSelectionRequired(BOOL* pRetVal) 3156*pRetVal = IsSelectionRequired ? BOOL.TRUE : BOOL.FALSE; 3178HRESULT ISelectionItemProvider.Interface.get_IsSelected(BOOL* pRetVal) 3185*pRetVal = IsItemSelected ? BOOL.TRUE : BOOL.FALSE;
System\Windows\Forms\Accessibility\LabelEditAccessibleObject.cs (1)
100internal override HRESULT GetTextCaretRange(BOOL* isActive, ITextRangeProvider** pRetVal)
System\Windows\Forms\Accessibility\LabelEditUiaTextProvider.cs (1)
72public override HRESULT GetCaretRange(BOOL* isActive, ITextRangeProvider** pRetVal)
System\Windows\Forms\ActiveX\AxHost.AxContainer.cs (5)
605HRESULT IOleContainer.Interface.LockContainer(BOOL fLock) => HRESULT.E_NOTIMPL; 619HRESULT IOleInPlaceFrame.Interface.ContextSensitiveHelp(BOOL fEnterMode) => HRESULT.S_OK; 710HRESULT IOleInPlaceFrame.Interface.EnableModeless(BOOL fEnable) => HRESULT.E_NOTIMPL; 717HRESULT IOleInPlaceUIWindow.Interface.ContextSensitiveHelp(BOOL fEnterMode) 735HRESULT IOleWindow.Interface.ContextSensitiveHelp(BOOL fEnterMode)
System\Windows\Forms\ActiveX\AxHost.AxContainer.ExtenderProxy.cs (5)
141public BOOL Enabled 143get => GetControl()?.Enabled ?? BOOL.FALSE; 213public BOOL TabStop 215get => GetControl()?.TabStop ?? BOOL.FALSE; 237public BOOL Visible
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (6)
144HRESULT IOleControlSite.Interface.LockInPlaceActive(BOOL fLock) => HRESULT.E_NOTIMPL; 241HRESULT IOleControlSite.Interface.OnFocus(BOOL fGotFocus) => HRESULT.S_OK; 326HRESULT IOleClientSite.Interface.OnShowWindow(BOOL fShow) => HRESULT.S_OK; 335HRESULT IOleWindow.Interface.ContextSensitiveHelp(BOOL fEnterMode) 349HRESULT IOleInPlaceSite.Interface.ContextSensitiveHelp(BOOL fEnterMode) => HRESULT.E_NOTIMPL; 410HRESULT IOleInPlaceSite.Interface.OnUIDeactivate(BOOL fUndoable)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (11)
1310/// <inheritdoc cref="IOleInPlaceActiveObject.OnDocWindowActivate(BOOL)"/> 1311internal void OnDocWindowActivate(BOOL fActivate) 1457/// <inheritdoc cref="IPersistStorage.Save(IStorage*, BOOL)"/> 1458internal HRESULT Save(IStorage* storage, BOOL fSameAsLoad) 1478/// <inheritdoc cref="IPersistStreamInit.Save(IStream*, BOOL)"/> 1479internal void Save(IStream* stream, BOOL fClearDirty) 1490/// <inheritdoc cref="IPersistPropertyBag.Save(IPropertyBag*, BOOL, BOOL)"/> 1491internal void Save(IPropertyBag* propertyBag, BOOL clearDirty, BOOL saveAllProperties) 1960inPlaceSite.Value->OnUIDeactivate(fUndoable: BOOL.FALSE);
System\Windows\Forms\ActiveX\Control_ActiveXControlInterfaces.cs (26)
75/// <inheritdoc cref="IOleControl.FreezeEvents(BOOL)"/> 76HRESULT IOleControl.Interface.FreezeEvents(BOOL bFreeze) 87/// <inheritdoc cref="IOleWindow.ContextSensitiveHelp(BOOL)"/> 88HRESULT IOleInPlaceActiveObject.Interface.ContextSensitiveHelp(BOOL fEnterMode) 95/// <inheritdoc cref="IOleInPlaceActiveObject.OnFrameWindowActivate(BOOL)"/> 96HRESULT IOleInPlaceActiveObject.Interface.OnFrameWindowActivate(BOOL fActivate) 102/// <inheritdoc cref="IOleInPlaceActiveObject.OnDocWindowActivate(BOOL)"/> 103HRESULT IOleInPlaceActiveObject.Interface.OnDocWindowActivate(BOOL fActivate) 109/// <inheritdoc cref="IOleInPlaceActiveObject.ResizeBorder(RECT*, IOleInPlaceUIWindow*, BOOL)"/> 110HRESULT IOleInPlaceActiveObject.Interface.ResizeBorder(RECT* prcBorder, IOleInPlaceUIWindow* pUIWindow, BOOL fFrameWindow) => 113/// <inheritdoc cref="IOleInPlaceActiveObject.EnableModeless(BOOL)"/> 114HRESULT IOleInPlaceActiveObject.Interface.EnableModeless(BOOL fEnable) => HRESULT.E_NOTIMPL; 119/// <inheritdoc cref="IOleWindow.ContextSensitiveHelp(BOOL)"/> 120HRESULT IOleInPlaceObject.Interface.ContextSensitiveHelp(BOOL fEnterMode) 189/// <inheritdoc cref="IOleObject.InitFromData(ComIDataObject*, BOOL, uint)"/> 190HRESULT IOleObject.Interface.InitFromData(ComIDataObject* pDataObject, BOOL fCreation, uint dwReserved) => 350/// <inheritdoc cref="IOleWindow.ContextSensitiveHelp(BOOL)"/> 351HRESULT IOleWindow.Interface.ContextSensitiveHelp(BOOL fEnterMode) 387/// <inheritdoc cref="IPersistPropertyBag.Save(IPropertyBag*, BOOL, BOOL)"/> 388HRESULT IPersistPropertyBag.Interface.Save(IPropertyBag* pPropBag, BOOL fClearDirty, BOOL fSaveAllProperties) 423/// <inheritdoc cref="IPersistStorage.Save(IStorage*, BOOL)"/> 424HRESULT IPersistStorage.Interface.Save(IStorage* pStgSave, BOOL fSameAsLoad) 467/// <inheritdoc cref="IPersistStreamInit.Save(IStream*, BOOL)"/> 468HRESULT IPersistStreamInit.Interface.Save(IStream* pStm, BOOL fClearDirty)
System\Windows\Forms\Application.ComponentManager.cs (15)
52BOOL IMsoComponentManager.Interface.FDebugMessage( 61BOOL IMsoComponentManager.Interface.FRegisterComponent( 91BOOL IMsoComponentManager.Interface.FRevokeComponent(nuint dwComponentID) 112BOOL IMsoComponentManager.Interface.FUpdateComponentRegistration( 127BOOL IMsoComponentManager.Interface.FOnComponentActivate(nuint dwComponentID) 138BOOL IMsoComponentManager.Interface.FSetTrackingComponent(nuint dwComponentID, BOOL fTrack) 172BOOL IMsoComponentManager.Interface.FOnComponentExitState( 194BOOL IMsoComponentManager.Interface.FInState(msocstate uStateID, void* pvoid) 197BOOL IMsoComponentManager.Interface.FContinueIdle() 204BOOL IMsoComponentManager.Interface.FPushMessageLoop( 211BOOL continueLoop = true; 326BOOL IMsoComponentManager.Interface.FCreateSubComponentManager( 341BOOL IMsoComponentManager.Interface.FGetParentComponentManager(IMsoComponentManager** ppicm) 352BOOL IMsoComponentManager.Interface.FGetActiveComponent(
System\Windows\Forms\Application.ComponentThreadContext.cs (10)
356BOOL IMsoComponent.Interface.FDebugMessage(nint hInst, uint msg, WPARAM wparam, LPARAM lparam) 359BOOL IMsoComponent.Interface.FPreTranslateMessage(MSG* msg) 362void IMsoComponent.Interface.OnEnterState(msocstate uStateID, BOOL fEnter) 384void IMsoComponent.Interface.OnAppActivate(BOOL fActive, uint dwOtherThreadID) 394BOOL fSameComponent, 396BOOL fHostIsActivating, 402BOOL IMsoComponent.Interface.FDoIdle(msoidlef grfidlef) 408BOOL IMsoComponent.Interface.FContinueMessageLoop( 466BOOL IMsoComponent.Interface.FQueryTerminate(BOOL fPromptUser) => true;
System\Windows\Forms\Application.cs (2)
697private static unsafe BOOL SendThemeChanged(HWND hwnd) 722private static BOOL SendThemeChangedRecursive(HWND handle)
System\Windows\Forms\Application.LightThreadContext.cs (3)
28public BOOL FContinueMessageLoop( 76private BOOL FPushMessageLoop(msoloop uReason) 78BOOL continueLoop = true;
System\Windows\Forms\Application.ThreadWindows.cs (1)
28private BOOL Callback(HWND hwnd)
System\Windows\Forms\ComponentModel\COM2Interop\COM2IVsPerPropertyBrowsingHandler.cs (8)
21BOOL hide = false; 87BOOL hide = sender.Attributes[typeof(BrowsableAttribute)] is Attribute browsableAttribute 99BOOL display = false; 117BOOL canReset = e.Value; 153BOOL readOnly = false; 174BOOL result; 192BOOL canReset = false; 210BOOL isDefault = true;
System\Windows\Forms\ComponentModel\COM2Interop\COM2PictureConverter.cs (1)
102BOOL own = false;
System\Windows\Forms\Control.cs (7)
4370PInvokeCore.SendMessage(this, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)false); 4705BOOL result = PInvokeCore.PeekMessage( 5065PInvokeCore.SendMessage(this, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)true); 10514BOOL value = darkModeEnabled; 10520(uint)sizeof(BOOL)).AssertSuccess(); 10701private void SetWindowFont() => PInvokeCore.SendMessage(this, PInvokeCore.WM_SETFONT, (WPARAM)FontHandle, (LPARAM)(BOOL)false); 11715m.ResultInternal = (LRESULT)(BOOL)e.Handled;
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (2)
1189PInvokeCore.SendMessage(this, PInvoke.BM_SETSTATE, (WPARAM)(BOOL)true); 1217PInvokeCore.SendMessage(this, PInvoke.BM_SETSTATE, (WPARAM)(BOOL)false);
System\Windows\Forms\Controls\Buttons\RadioButton.cs (2)
163PInvokeCore.SendMessage(this, PInvoke.BM_SETCHECK, (WPARAM)(BOOL)value); 349PInvokeCore.SendMessage(this, PInvoke.BM_SETCHECK, (WPARAM)(BOOL)_isChecked);
System\Windows\Forms\Controls\ComboBox\ComboBox.ACNativeWindow.cs (1)
26private static BOOL RegisterACWindowRecursive(HWND handle)
System\Windows\Forms\Controls\ComboBox\ComboBox.AutoCompleteDropDownFinder.cs (1)
37private unsafe BOOL Callback(HWND hwnd)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildEditUiaProvider.cs (1)
121internal override unsafe HRESULT GetTextCaretRange(BOOL* isActive, ITextRangeProvider** pRetVal)
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxUiaTextProvider.cs (1)
118public override HRESULT GetCaretRange(BOOL* isActive, ITextRangeProvider** pRetVal)
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.EnumChildren.cs (1)
12public BOOL enumChildren(HWND hwnd)
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (2)
252PInvokeCore.SendMessage(this, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)false); 261PInvokeCore.SendMessage(this, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)true);
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
1643PInvokeCore.SendMessage(this, PInvoke.LB_SETSEL, (WPARAM)(BOOL)value, (LPARAM)index);
System\Windows\Forms\Controls\ListView\ListView.cs (4)
5861int retval = (int)PInvokeCore.SendMessage(this, PInvoke.LVM_ENABLEGROUPVIEW, (WPARAM)(BOOL)GroupsEnabled); 6504m.ResultInternal = (LRESULT)(nint)(BOOL)cancelEdit; 6556m.ResultInternal = (LRESULT)(nint)(BOOL)!e.CancelEdit; 6616m.ResultInternal = (LRESULT)(nint)(BOOL)(e.NewValue == oldState);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarButtonAccessibleObject.cs (1)
71BOOL setOldCursorPos = PInvoke.GetPhysicalCursorPos(out Point previousPosition);
System\Windows\Forms\Controls\ProgressBar\ProgressBar.cs (2)
255PInvokeCore.SendMessage(this, PInvoke.PBM_SETMARQUEE, (WPARAM)(BOOL)false, (LPARAM)_marqueeAnimationSpeed); 259PInvokeCore.SendMessage(this, PInvoke.PBM_SETMARQUEE, (WPARAM)(BOOL)true, (LPARAM)_marqueeAnimationSpeed);
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (6)
594PInvokeCore.SendMessage(this, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)false); 607PInvokeCore.SendMessage(this, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)true); 4268m.ResultInternal = (LRESULT)(nint)(BOOL)CanUndo; 4279m.ResultInternal = (LRESULT)(nint)(BOOL)CanCut; 4291m.ResultInternal = (LRESULT)(nint)(BOOL)CanCopy; 4303m.ResultInternal = (LRESULT)(nint)(BOOL)CanPaste;
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
343PInvokeCore.SendMessage(this, PInvokeCore.EM_AUTOURLDETECT, (WPARAM)(BOOL)(value));
System\Windows\Forms\Controls\RichTextBox\RichTextBox.OleCallback.cs (5)
61public HRESULT ShowContainerUI(BOOL fShow) => HRESULT.S_OK; 67/// <inheritdoc cref="IRichEditOleCallback.QueryAcceptData(Com.IDataObject*, ushort*, RECO_FLAGS, BOOL, HGLOBAL)"/> 68public HRESULT QueryAcceptData(Com.IDataObject* lpdataobj, ushort* lpcfFormat, RECO_FLAGS reco, BOOL fReally, HGLOBAL hMetaPict) 188public HRESULT ContextSensitiveHelp(BOOL fEnterMode) => HRESULT.E_NOTIMPL; 192public HRESULT GetDragDropEffect(BOOL fDrag, MODIFIERKEYS_FLAGS grfKeyState, DROPEFFECT* pdwEffect)
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
1797private BOOL StyleChildren(HWND handle) =>
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (3)
694PInvokeCore.SendMessage(this, PInvokeCore.EM_SETMODIFY, (WPARAM)(BOOL)value); 942PInvokeCore.SendMessage(this, PInvokeCore.EM_SETREADONLY, (WPARAM)(BOOL)value); 1393PInvokeCore.SendMessage(this, PInvokeCore.EM_SETMODIFY, (WPARAM)(BOOL)true);
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseAccessibleObject.cs (1)
115internal override HRESULT GetTextCaretRange(BOOL* isActive, ITextRangeProvider** pRetVal)
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (1)
156public override HRESULT GetCaretRange(BOOL* isActive, ITextRangeProvider** pRetVal)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
1984PInvokeCore.SendMessage(activeWindow, PInvokeCore.WM_NCACTIVATE, (WPARAM)(BOOL)true, (LPARAM)(-1));
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (7)
440PInvokeCore.SendMessage(this, PInvoke.TBM_SETRANGEMAX, (WPARAM)(BOOL)true, (LPARAM)_maximum); 801Debug.Assert((bool)(BOOL)lresult); 864PInvokeCore.SendMessage(this, PInvoke.TBM_SETRANGEMIN, (WPARAM)(BOOL)false, (LPARAM)_minimum); 865PInvokeCore.SendMessage(this, PInvoke.TBM_SETRANGEMAX, (WPARAM)(BOOL)false, (LPARAM)_maximum); 1063PInvokeCore.SendMessage(this, PInvoke.TBM_SETRANGEMIN, (WPARAM)(BOOL)false, (LPARAM)_minimum); 1064PInvokeCore.SendMessage(this, PInvoke.TBM_SETRANGEMAX, (WPARAM)(BOOL)true, (LPARAM)_maximum); 1122PInvokeCore.SendMessage(this, PInvoke.TBM_SETPOS, (WPARAM)(BOOL)true, (LPARAM)reflectedValue);
System\Windows\Forms\Controls\TreeView\TreeNode.cs (3)
1592PInvokeCore.SendMessage(tv, PInvoke.TVM_ENDEDITLABELNOW, (WPARAM)(BOOL)cancel); 1882PInvokeCore.SendMessage(tv, PInvoke.TVM_ENDEDITLABELNOW, (WPARAM)(BOOL)false); 1907PInvokeCore.SendMessage(tv, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)true);
System\Windows\Forms\Controls\TreeView\TreeView.cs (4)
1602PInvokeCore.SendMessage(this, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)false); 1605PInvokeCore.PostMessage(this, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)true); 1609PInvokeCore.SendMessage(this, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)true); 2932PInvokeCore.SendMessage(tooltipHandle, PInvoke.TTM_ADJUSTRECT, (WPARAM)(BOOL)true, ref bounds);
System\Windows\Forms\Controls\WebBrowser\WebBrowser.WebBrowserSite.cs (4)
92HRESULT IDocHostUIHandler.EnableModeless(BOOL fEnable) 117HRESULT IDocHostUIHandler.OnDocWindowActivate(BOOL fActivate) 122HRESULT IDocHostUIHandler.OnFrameWindowActivate(BOOL fActivate) 127unsafe HRESULT IDocHostUIHandler.ResizeBorder(RECT* rect, IOleInPlaceUIWindow.Interface doc, BOOL fFrameWindow)
System\Windows\Forms\Controls\WebBrowser\WebBrowserContainer.cs (5)
66HRESULT IOleContainer.Interface.LockContainer(BOOL fLock) => HRESULT.E_NOTIMPL; 80HRESULT IOleInPlaceFrame.Interface.ContextSensitiveHelp(BOOL fEnterMode) => HRESULT.S_OK; 152HRESULT IOleInPlaceFrame.Interface.EnableModeless(BOOL fEnable) => HRESULT.E_NOTIMPL; 420HRESULT IOleInPlaceUIWindow.Interface.ContextSensitiveHelp(BOOL fEnterMode) 438HRESULT IOleWindow.Interface.ContextSensitiveHelp(BOOL fEnterMode)
System\Windows\Forms\Controls\WebBrowser\WebBrowserSiteBase.cs (6)
69HRESULT IOleControlSite.Interface.LockInPlaceActive(BOOL fLock) => HRESULT.E_NOTIMPL; 154HRESULT IOleControlSite.Interface.OnFocus(BOOL fGotFocus) => HRESULT.S_OK; 209HRESULT IOleClientSite.Interface.OnShowWindow(BOOL fShow) => HRESULT.S_OK; 225HRESULT IOleInPlaceSite.Interface.ContextSensitiveHelp(BOOL fEnterMode) => HRESULT.E_NOTIMPL; 279HRESULT IOleInPlaceSite.Interface.OnUIDeactivate(BOOL fUndoable) 424HRESULT IOleWindow.Interface.ContextSensitiveHelp(BOOL fEnterMode)
System\Windows\Forms\Dialogs\CommonDialogs\FolderBrowserDialog.cs (3)
498PInvokeCore.SendMessage(hwnd, PInvoke.BFFM_SETEXPANDED, (WPARAM)(BOOL)true, instance._initialDirectory); 504PInvokeCore.SendMessage(hwnd, PInvoke.BFFM_SETSELECTIONW, (WPARAM)(BOOL)true, instance.SelectedPath); 518PInvokeCore.SendMessage(hwnd, PInvoke.BFFM_ENABLEOK, 0, (nint)(BOOL)isFileSystemFolder);
System\Windows\Forms\Dialogs\TaskDialog\TaskDialog.cs (8)
602BOOL dummyVerificationFlag; 744(WPARAM)(BOOL)marqueeProgressBar); 760(WPARAM)(BOOL)enableMarquee, 813(WPARAM)(BOOL)isChecked, 814(LPARAM)(BOOL)focus); 819(LPARAM)(BOOL)requiresElevation); 824(LPARAM)(BOOL)enable); 829(LPARAM)(BOOL)enable);
System\Windows\Forms\Form.cs (3)
2185PInvokeCore.SendMessage(this, PInvokeCore.WM_SHOWWINDOW, (WPARAM)(BOOL)value); 6133BOOL result; 6746m.ResultInternal = (LRESULT)(BOOL)!e.Cancel;
System\Windows\Forms\Form.EnumThreadWindowsCallback.cs (1)
23internal BOOL Callback(HWND hwnd)
System\Windows\Forms\OLE\DataObject.cs (1)
344HRESULT Com.IDataObject.Interface.SetData(Com.FORMATETC* pformatetc, Com.STGMEDIUM* pmedium, BOOL fRelease) =>
System\Windows\Forms\OLE\DropSource.cs (1)
32public HRESULT QueryContinueDrag(BOOL fEscapePressed, MODIFIERKEYS_FLAGS grfKeyState)
System\Windows\Forms\OLE\DropTarget.cs (1)
204&& asyncCapability->GetAsyncMode(out BOOL isAsync).Succeeded
System\Windows\Forms\Printing\PrintDialog.cs (1)
295BOOL result = RuntimeInformation.ProcessArchitecture == Architecture.X86
System\Windows\Forms\Printing\PrintPreviewControl.PrintPreviewControlAccessibleObject.cs (2)
209BOOL IScrollProvider.Interface.HorizontallyScrollable => 212BOOL IScrollProvider.Interface.VerticallyScrollable =>
System\Windows\Forms\ToolTip\ToolTip.cs (3)
117PInvokeCore.SendMessage(this, PInvoke.TTM_ACTIVATE, (WPARAM)(BOOL)value); 771PInvokeCore.SendMessage(this, PInvoke.TTM_ACTIVATE, (WPARAM)(BOOL)_active); 2073PInvokeCore.SendMessage(this, PInvoke.TTM_ADJUSTRECT, (WPARAM)(BOOL)true, ref rect);
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (1)
481_lastHResult = PInvoke.GetThemeBool(HTHEME, Part, State, (THEME_PROPERTY_SYMBOL_ID)prop, out BOOL value);
System.Windows.Forms.Design (19)
System\ComponentModel\Design\MultilineStringEditor.OleCallback.cs (4)
56public HRESULT ShowContainerUI(BOOL fShow) 93public HRESULT QueryAcceptData(Com.IDataObject* lpdataobj, ushort* lpcfFormat, RECO_FLAGS reco, BOOL fReally, HGLOBAL hMetaPict) 126public HRESULT ContextSensitiveHelp(BOOL fEnterMode) => HRESULT.E_NOTIMPL; 130public unsafe HRESULT GetDragDropEffect(BOOL fDrag, MODIFIERKEYS_FLAGS grfKeyState, DROPEFFECT* pdwEffect)
System\Drawing\Design\ColorEditor.CustomColorDialog.cs (1)
120BOOL success = false;
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (2)
647PInvokeCore.SendMessage(control, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)false); 833PInvokeCore.SendMessage(control, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)true);
System\Windows\Forms\Design\DesignerFrame.cs (1)
90PInvokeCore.SendMessage(_designer, PInvokeCore.WM_NCACTIVATE, (WPARAM)(BOOL)focus);
System\Windows\Forms\Design\DocumentDesigner.cs (1)
1081PInvokeCore.SendMessage(control, PInvokeCore.WM_NCACTIVATE, (WPARAM)(BOOL)false);
System\Windows\Forms\Design\FormDocumentDesigner.cs (2)
400PInvokeCore.SendMessage(control, PInvokeCore.WM_NCACTIVATE, (WPARAM)(BOOL)true); 412PInvokeCore.SendMessage(control, PInvokeCore.WM_NCACTIVATE, (WPARAM)(BOOL)false);
System\Windows\Forms\Design\MaskDesignerDialog.cs (2)
501PInvokeCore.SendMessage(_listViewCannedMasks, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)false); 535PInvokeCore.SendMessage(_listViewCannedMasks, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)true);
System\Windows\Forms\Design\OleDragDropHandler.cs (2)
755PInvokeCore.SendMessage(oldDesignerControl, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)false); 803PInvokeCore.SendMessage(oldDesignerControl, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)true);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (4)
883PInvokeCore.SendMessage(baseComponent, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)false); 885PInvokeCore.SendMessage(baseComponent, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)true); 963PInvokeCore.SendMessage(baseComponent, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)false); 965PInvokeCore.SendMessage(baseComponent, PInvokeCore.WM_SETREDRAW, (WPARAM)(BOOL)true);
System.Windows.Forms.Interop.Tests (16)
AccessibleObjectTests.cs (15)
84AssertSuccess(Test_IRawElementProviderSimpleGetPatternProvider(o, (UIA_PATTERN_ID)patternId, (BOOL)expected)); 470AssertSuccess(Test_IOleWindowContextSensitiveHelp(o, (BOOL)fEnterMode, HRESULT.S_OK)); 482AssertSuccess(Test_IOleWindowContextSensitiveHelp(o, (BOOL)fEnterMode, HRESULT.S_OK)); 495AssertSuccess(Test_IOleWindowContextSensitiveHelp(o, (BOOL)fEnterMode, HRESULT.S_OK)); 807BOOL expected); 818BOOL expected); 829BOOL expected); 905BOOL expected); 1018BOOL fEnterMode, 1083BOOL expected); 1098BOOL expected); 1103BOOL expected); 1108BOOL expected); 1113BOOL expected); 1118BOOL expected);
RichTextBoxTests.cs (1)
56Assert.Equal(BOOL.TRUE, value.fProtected);
System.Windows.Forms.Primitives (291)
Interop\Mshtml\Interop.IDocHostUIHandler.cs (4)
46BOOL fEnable); 50BOOL fActivate); 54BOOL fActivate); 60BOOL fFrameWindow);
Interop\Richedit\Interop.ENDROPFILES.cs (1)
16public BOOL fProtected;
Microsoft\Office\IMsoComponent.cs (70)
35internal delegate* unmanaged[Stdcall]<IMsoComponent*, nint, uint, WPARAM, LPARAM, BOOL> FDebugMessage_4; 36internal delegate* unmanaged[Stdcall]<IMsoComponent*, MSG*, BOOL> FPreTranslateMessage_5; 37internal delegate* unmanaged[Stdcall]<IMsoComponent*, msocstate, BOOL, void> OnEnterState_6; 38internal delegate* unmanaged[Stdcall]<IMsoComponent*, BOOL, uint, void> OnAppActivate_7; 40internal delegate* unmanaged[Stdcall]<IMsoComponent*, IMsoComponent*, BOOL, MSOCRINFO*, BOOL, nint, uint, void> OnActivationChange_9; 41internal delegate* unmanaged[Stdcall]<IMsoComponent*, msoidlef, BOOL> FDoIdle_10; 42internal delegate* unmanaged[Stdcall]<IMsoComponent*, msoloop, void*, MSG*, BOOL> FContinueMessageLoop_11; 43internal delegate* unmanaged[Stdcall]<IMsoComponent*, BOOL, BOOL> FQueryTerminate_12; 50private static BOOL FDebugMessage(IMsoComponent* @this, nint hInst, uint msg, WPARAM wParam, LPARAM lParam) 51=> UnwrapAndInvoke<IMsoComponent, Interface, BOOL>(@this, o => o.FDebugMessage(hInst, msg, wParam, lParam)); 54private static BOOL FPreTranslateMessage(IMsoComponent* @this, MSG* msg) 55=> UnwrapAndInvoke<IMsoComponent, Interface, BOOL>(@this, o => o.FPreTranslateMessage(msg)); 58private static void OnEnterState(IMsoComponent* @this, msocstate uStateID, BOOL fEnter) 62private static void OnAppActivate(IMsoComponent* @this, BOOL fActive, uint dwOtherThreadID) 73BOOL fSameComponent, 75BOOL fHostIsActivating, 83private static BOOL FDoIdle(IMsoComponent* @this, msoidlef grfidlef) 84=> UnwrapAndInvoke<IMsoComponent, Interface, BOOL>(@this, o => o.FDoIdle(grfidlef)); 87private static BOOL FContinueMessageLoop(IMsoComponent* @this, msoloop uReason, void* pvLoopData, MSG* pMsgPeeked) 88=> UnwrapAndInvoke<IMsoComponent, Interface, BOOL>(@this, o => o.FContinueMessageLoop(uReason, pvLoopData, pMsgPeeked)); 91private static BOOL FQueryTerminate(IMsoComponent* @this, BOOL fPromptUser) 92=> UnwrapAndInvoke<IMsoComponent, Interface, BOOL>(@this, o => o.FQueryTerminate(fPromptUser)); 146public BOOL FDebugMessage(nint hInst, uint msg, WPARAM wParam, LPARAM lParam) 149return ((delegate* unmanaged[Stdcall]<IMsoComponent*, nint, uint, WPARAM, LPARAM, BOOL>)_lpVtbl[3])( 154public BOOL FPreTranslateMessage(MSG* msg) 157return ((delegate* unmanaged[Stdcall]<IMsoComponent*, MSG*, BOOL>)_lpVtbl[4])(pThis, msg); 160/// <inheritdoc cref="Interface.OnEnterState(msocstate, BOOL)"/> 161public void OnEnterState(msocstate uStateID, BOOL fEnter) 164((delegate* unmanaged[Stdcall]<IMsoComponent*, msocstate, BOOL, void>)_lpVtbl[5])(pThis, uStateID, fEnter); 167/// <inheritdoc cref="Interface.OnAppActivate(BOOL, uint)"/> 168public void OnAppActivate(BOOL fActive, uint dwOtherThreadID) 171((delegate* unmanaged[Stdcall]<IMsoComponent*, BOOL, uint, void>)_lpVtbl[6])(pThis, fActive, dwOtherThreadID); 181/// <inheritdoc cref="Interface.OnActivationChange(IMsoComponent*, BOOL, MSOCRINFO*, BOOL, nint, uint)"/> 182public void OnActivationChange(IMsoComponent* pic, BOOL fSameComponent, MSOCRINFO* pcrinfo, BOOL fHostIsActivating, nint pchostinfo, uint dwReserved) 185((delegate* unmanaged[Stdcall]<IMsoComponent*, IMsoComponent*, BOOL, MSOCRINFO*, BOOL, nint, uint, void>)_lpVtbl[8]) 190public BOOL FDoIdle(msoidlef grfidlef) 193return ((delegate* unmanaged[Stdcall]<IMsoComponent*, msoidlef, BOOL>)_lpVtbl[9])(pThis, grfidlef); 197public BOOL FContinueMessageLoop(msoloop uReason, void* pvLoopData, MSG* pMsgPeeked) 200return ((delegate* unmanaged[Stdcall]<IMsoComponent*, msoloop, void*, MSG*, BOOL>)_lpVtbl[10]) 204/// <inheritdoc cref="Interface.FQueryTerminate(BOOL)"/> 205public BOOL FQueryTerminate(BOOL fPromptUser) 208return ((delegate* unmanaged[Stdcall]<IMsoComponent*, BOOL, BOOL>)_lpVtbl[11])(pThis, fPromptUser); 261/// <returns><see cref="BOOL.TRUE"/></returns> 263BOOL FDebugMessage( 275/// Return <see cref="BOOL.TRUE"/> if the message is consumed, 276/// <see cref="BOOL.FALSE"/> otherwise. 279BOOL FPreTranslateMessage(MSG* msg); 303BOOL fEnter); 315/// If <see cref="BOOL.TRUE"/>, the host app is being activated and <paramref name="dwOtherThreadID"/> 318/// If <see cref="BOOL.FALSE"/>, the host app is being deactivated and <paramref name="dwOtherThreadID"/> 323BOOL fActive, 385BOOL fSameComponent, 387BOOL fHostIsActivating, 414/// <see cref="BOOL.TRUE"/> if more time is needed to perform the idle time tasks, 415/// <see cref="BOOL.FALSE"/> otherwise. 418BOOL FDoIdle( 443/// <see cref="BOOL.TRUE"/> if the message loop should continue, <see cref="BOOL.FALSE"/> otherwise. 446/// If <see cref="BOOL.FALSE"/> is returned, the component manager terminates the 451BOOL FContinueMessageLoop( 474BOOL FQueryTerminate( 475BOOL fPromptUser);
Microsoft\Office\IMsoComponentManager.cs (70)
66public BOOL FDebugMessage(nint dwReserved, uint msg, WPARAM wParam, LPARAM lParam) 69return ((delegate* unmanaged[Stdcall]<IMsoComponentManager*, nint, uint, WPARAM, LPARAM, BOOL>)_lpVtbl[4]) 74public BOOL FRegisterComponent(IMsoComponent* piComponent, MSOCRINFO* pcrinfo, nuint* dwComponentID) 77return ((delegate* unmanaged[Stdcall]<IMsoComponentManager*, IMsoComponent*, MSOCRINFO*, nuint*, BOOL>)_lpVtbl[5]) 82public BOOL FRevokeComponent(nuint dwComponentID) 85return ((delegate* unmanaged[Stdcall]<IMsoComponentManager*, nuint, BOOL>)_lpVtbl[6]) 90public BOOL FUpdateComponentRegistration(nuint dwComponentID, MSOCRINFO* pcrinfo) 93return ((delegate* unmanaged[Stdcall]<IMsoComponentManager*, nuint, MSOCRINFO*, BOOL>)_lpVtbl[7]) 98public BOOL FOnComponentActivate(nuint dwComponentID) 101return ((delegate* unmanaged[Stdcall]<IMsoComponentManager*, nuint, BOOL>)_lpVtbl[8]) 105/// <inheritdoc cref="Interface.FSetTrackingComponent(nuint, BOOL)"/> 106public BOOL FSetTrackingComponent(nuint dwComponentID, BOOL fTrack) 109return ((delegate* unmanaged[Stdcall]<IMsoComponentManager*, nuint, BOOL, BOOL>)_lpVtbl[9]) 128public BOOL FOnComponentExitState( 136return ((delegate* unmanaged[Stdcall]<IMsoComponentManager*, nuint, msocstate, msoccontext, uint, IMsoComponentManager**, BOOL>)_lpVtbl[11]) 141public BOOL FInState(msocstate uStateID, void* pvoid) 144return ((delegate* unmanaged[Stdcall]<IMsoComponentManager*, msocstate, void*, BOOL>)_lpVtbl[12]) 149public BOOL FContinueIdle() 152return ((delegate* unmanaged[Stdcall]<IMsoComponentManager*, BOOL>)_lpVtbl[13])(pThis); 156public BOOL FPushMessageLoop(nuint dwComponentID, msoloop uReason, void* pvLoopData) 159return ((delegate* unmanaged[Stdcall]<IMsoComponentManager*, nuint, msoloop, void*, BOOL>)_lpVtbl[14]) 164public BOOL FCreateSubComponentManager(IUnknown* punkOuter, IUnknown* punkServProv, Guid* riid, void** ppvObj) 167return ((delegate* unmanaged[Stdcall]<IMsoComponentManager*, IUnknown*, IUnknown*, Guid*, void**, BOOL>)_lpVtbl[15]) 172public BOOL FGetParentComponentManager(IMsoComponentManager** ppicm) 175return ((delegate* unmanaged[Stdcall]<IMsoComponentManager*, IMsoComponentManager**, BOOL>)_lpVtbl[16]) 180public BOOL FGetActiveComponent(msogac dwgac, IMsoComponent** ppic, MSOCRINFO* pcrinfo, uint dwReserved) 183return ((delegate* unmanaged[Stdcall]<IMsoComponentManager*, msogac, IMsoComponent**, MSOCRINFO*, uint, BOOL>)_lpVtbl[17]) 242/// <returns><see cref="BOOL.TRUE"/></returns> 244BOOL FDebugMessage( 258/// <returns><see cref="BOOL.TRUE"/> if successful.</returns> 260BOOL FRegisterComponent( 269/// <returns><see cref="BOOL.TRUE"/> if successful.</returns> 271BOOL FRevokeComponent(nuint dwComponentID); 284/// <returns><see cref="BOOL.TRUE"/> if successful.</returns> 286BOOL FUpdateComponentRegistration( 302/// <see cref="BOOL.FALSE"/> is returned and SetLastError is set to msoerrACompIsXActive 306/// <returns><see cref="BOOL.TRUE"/> if successful.</returns> 308BOOL FOnComponentActivate(nuint dwComponentID); 331/// <see cref="BOOL.TRUE"/> to begin tracking operation. <see cref="BOOL.FALSE"/> 334/// <returns><see cref="BOOL.TRUE"/> if successful.</returns> 336BOOL FSetTrackingComponent( 338BOOL fTrack); 351/// <see cref="IMsoComponent.OnEnterState(msocstate, BOOL)"/> (see "Comments on State Contexts" in 369/// <see cref="IOleInPlaceFrame.EnableModeless(BOOL)"/> instead. 406/// via <see cref="IMsoComponent.OnEnterState(msocstate, BOOL)"/> (see "Comments on State Contexts", above). 417/// <see cref="BOOL.TRUE"/> if, at the end of this call, the state is still in effect at the root 419/// otherwise return <see cref="BOOL.FALSE"/> (ie. return what <see cref="FInState"/> would return). 426BOOL FOnComponentExitState( 434/// Return <see cref="BOOL.TRUE"/> if the state identified by <paramref name="uStateID"/> 435/// is in effect at the root of this component manager's state context, <see cref="BOOL.FALSE"/> 440BOOL FInState( 448/// <see cref="BOOL.TRUE"/> if component can continue its idle time processing, 449/// <see cref="BOOL.FALSE"/> if not (in which case component returns from FDoIdle.) 452BOOL FContinueIdle(); 462/// When <see cref="IMsoComponent.FContinueMessageLoop(msoloop, void*, MSG*)"/> returns <see cref="BOOL.FALSE"/>, 468/// <see cref="BOOL.TRUE"/> if component manager terminates loop because component told it 469/// to (by returning <see cref="BOOL.FALSE"/> from <see cref="IMsoComponent.FContinueMessageLoop(msoloop, void*, MSG*)"/>), 470/// <see cref="BOOL.FALSE"/> if it had to terminate the loop for some other reason. In the 474BOOL FPushMessageLoop( 491/// <returns><see cref="BOOL.TRUE"/> if successful.</returns> 493BOOL FCreateSubComponentManager( 505/// <see cref="BOOL.TRUE"/> if the parent is returned, <see cref="BOOL.FALSE"/> 509BOOL FGetParentComponentManager( 526/// <see cref="BOOL.TRUE"/> if the component indicated by <paramref name="dwgac"/> 527/// exists, <see cref="BOOL.FALSE"/> if no such component exists or some error occurred. 530BOOL FGetActiveComponent(
Microsoft\Office\IMsoComponentManager.NativeAdapter.cs (14)
28BOOL Interface.FDebugMessage(nint dwReserved, uint msg, WPARAM wParam, LPARAM lParam) 34BOOL Interface.FRegisterComponent(IMsoComponent* piComponent, MSOCRINFO* pcrinfo, nuint* dwComponentID) 40BOOL Interface.FRevokeComponent(nuint dwComponentID) 46BOOL Interface.FUpdateComponentRegistration(nuint dwComponentID, MSOCRINFO* pcrinfo) 52BOOL Interface.FOnComponentActivate(nuint dwComponentID) 58BOOL Interface.FSetTrackingComponent(nuint dwComponentID, BOOL fTrack) 76BOOL Interface.FOnComponentExitState( 87BOOL Interface.FInState(msocstate uStateID, void* pvoid) 93BOOL Interface.FContinueIdle() 99BOOL Interface.FPushMessageLoop(nuint dwComponentID, msoloop uReason, void* pvLoopData) 105BOOL Interface.FCreateSubComponentManager(IUnknown* punkOuter, IUnknown* punkServProv, Guid* riid, void** ppvObj) 111BOOL Interface.FGetParentComponentManager(IMsoComponentManager** ppicm) 117BOOL Interface.FGetActiveComponent(msogac dwgac, IMsoComponent** ppic, MSOCRINFO* pcrinfo, uint dwReserved)
Microsoft\Office\msocstate.cs (1)
7/// State IDs passed to <see cref="IMsoComponent.OnEnterState(msocstate, BOOL)" /> and
Microsoft\Office\msoloop.cs (1)
9/// returns <see cref="BOOL.FALSE" />
Microsoft\VisualStudio\Shell\IVsPerPropertyBrowsing.cs (20)
55/// <inheritdoc cref="Interface.HideProperty(int, BOOL*)"/> 56public HRESULT HideProperty(int dispid, BOOL* pfHide) 59return ((delegate* unmanaged[Stdcall]<IVsPerPropertyBrowsing*, int, BOOL*, HRESULT>)_lpVtbl[3])(pThis, dispid, pfHide); 62/// <inheritdoc cref="Interface.DisplayChildProperties(int, BOOL*)"/> 63public HRESULT DisplayChildProperties(int dispid, BOOL* pfDisplay) 66return ((delegate* unmanaged[Stdcall]<IVsPerPropertyBrowsing*, int, BOOL*, HRESULT>)_lpVtbl[4])(pThis, dispid, pfDisplay); 85/// <inheritdoc cref="Interface.HasDefaultValue(int, BOOL*)"/> 88BOOL* fDefault) 91return ((delegate* unmanaged[Stdcall]<IVsPerPropertyBrowsing*, int, BOOL*, HRESULT>)_lpVtbl[6])(pThis, dispid, fDefault); 94/// <inheritdoc cref="Interface.IsPropertyReadOnly(int, BOOL*)"/> 97BOOL* fReadOnly) 100return ((delegate* unmanaged[Stdcall]<IVsPerPropertyBrowsing*, int, BOOL*, HRESULT>)_lpVtbl[7])(pThis, dispid, fReadOnly); 111/// <inheritdoc cref="Interface.CanResetPropertyValue(int, BOOL*)"/> 114BOOL* pfCanReset) 117return ((delegate* unmanaged[Stdcall]<IVsPerPropertyBrowsing*, int, BOOL*, HRESULT>)_lpVtbl[9])(pThis, dispid, pfCanReset); 140BOOL* pfHide); 149BOOL* pfDisplay); 169BOOL* fDefault); 177BOOL* fReadOnly); 196BOOL* pfCanReset);
System\Windows\Forms\Automation\UiaTextProvider.cs (1)
151public abstract HRESULT GetCaretRange(BOOL* isActive, ITextRangeProvider** pRetVal);
System\Windows\Forms\Automation\UiaTextRange.cs (5)
128HRESULT ITextRangeProvider.Interface.Compare(ITextRangeProvider* range, BOOL* pRetVal) 270HRESULT ITextRangeProvider.Interface.FindAttribute(UIA_TEXTATTRIBUTE_ID attributeId, VARIANT val, BOOL backward, ITextRangeProvider** pRetVal) 281HRESULT ITextRangeProvider.Interface.FindText(BSTR text, BOOL backward, BOOL ignoreCase, ITextRangeProvider** pRetVal) 591HRESULT ITextRangeProvider.Interface.ScrollIntoView(BOOL alignToTop)
System\Windows\Forms\IExtender.cs (15)
60internal delegate* unmanaged[Stdcall]<IExtender*, BOOL*, HRESULT> get_Enabled_6; 61internal delegate* unmanaged[Stdcall]<IExtender*, BOOL, HRESULT> set_Enabled_7; 66internal delegate* unmanaged[Stdcall]<IExtender*, BOOL*, HRESULT> get_TabStop_12; 67internal delegate* unmanaged[Stdcall]<IExtender*, BOOL, HRESULT> set_TabStop_13; 70internal delegate* unmanaged[Stdcall]<IExtender*, BOOL*, HRESULT> get_Visible_16; 71internal delegate* unmanaged[Stdcall]<IExtender*, BOOL, HRESULT> set_Visible_17; 137private static HRESULT get_Enabled(IExtender* @this, BOOL* value) 141private static HRESULT set_Enabled(IExtender* @this, BOOL value) 161private static HRESULT get_TabStop(IExtender* @this, BOOL* value) 165private static HRESULT set_TabStop(IExtender* @this, BOOL value) 177private static HRESULT get_Visible(IExtender* @this, BOOL* value) 181private static HRESULT set_Visible(IExtender* @this, BOOL value) 219BOOL Enabled { get; set; } 225BOOL TabStop { get; set; } 229BOOL Visible { get; set; }
Windows\Win32\Foundation\Interop.PARAM.cs (1)
50=> (nint)(BOOL)(value);
Windows\Win32\PInvoke.ChooseColor.cs (1)
12public static extern unsafe BOOL ChooseColor(CHOOSECOLORW* param0);
Windows\Win32\PInvoke.ChooseFont.cs (1)
12public static extern unsafe BOOL ChooseFont(CHOOSEFONTW* lpcf);
Windows\Win32\PInvoke.ClientToScreen.cs (2)
11public static BOOL ClientToScreen<T>(T hWnd, ref Point lpPoint) 14BOOL result = ClientToScreen(hWnd.Handle, ref lpPoint);
Windows\Win32\PInvoke.CloseHandle.cs (2)
9public static BOOL CloseHandle<T>(T handle) where T : IHandle<HANDLE> 11BOOL result = CloseHandle(handle.Handle);
Windows\Win32\PInvoke.DestroyAcceleratorTable.cs (2)
9public static BOOL DestroyAcceleratorTable<T>(T hAccel) 12BOOL result = DestroyAcceleratorTable(hAccel.Handle);
Windows\Win32\PInvoke.DrawMenuBar.cs (2)
9public static BOOL DrawMenuBar<T>(T hWnd) 12BOOL result = DrawMenuBar(hWnd.Handle);
Windows\Win32\PInvoke.EnableMenuItem.cs (2)
9public static BOOL EnableMenuItem<T>(T hMenu, uint uIDEnableItem, MENU_ITEM_FLAGS uEnable) 12BOOL result = EnableMenuItem(hMenu.Handle, uIDEnableItem, uEnable);
Windows\Win32\PInvoke.EnableScrollBar.cs (2)
9public static BOOL EnableScrollBar<T>(T hWnd, SCROLLBAR_CONSTANTS wSBflags, ENABLE_SCROLL_BAR_ARROWS wArrows) 12BOOL result = EnableScrollBar(hWnd.Handle, (uint)wSBflags, wArrows);
Windows\Win32\PInvoke.EnableWindow.cs (4)
8/// <inheritdoc cref="EnableWindow(HWND, BOOL)"/> 9public static BOOL EnableWindow<T>(T hWnd, BOOL bEnable) 12BOOL result = EnableWindow(hWnd.Handle, bEnable);
Windows\Win32\PInvoke.EndDialog.cs (2)
9public static BOOL EndDialog<T>(T hDlg, IntPtr nResult) 12BOOL result = EndDialog(hDlg.Handle, nResult);
Windows\Win32\PInvoke.GetOpenFileName.cs (2)
13public static extern unsafe BOOL GetOpenFileName(OPENFILENAME* param0); 16public static extern unsafe BOOL GetSaveFileName(OPENFILENAME* param0);
Windows\Win32\PInvoke.GetScrollInfo.cs (2)
9public static BOOL GetScrollInfo<T>(T hwnd, SCROLLBAR_CONSTANTS nBar, ref SCROLLINFO lpsi) 12BOOL result = GetScrollInfo(hwnd.Handle, nBar, ref lpsi);
Windows\Win32\PInvoke.GetSystemMenu.cs (2)
8/// <inheritdoc cref="GetSystemMenu(HWND, BOOL)"/> 9public static HMENU GetSystemMenu<T>(T hwnd, BOOL bRevert) where T : IHandle<HWND>
Windows\Win32\PInvoke.GetTextExtentPoint32.cs (2)
11public static unsafe BOOL GetTextExtentPoint32W<T>(T hdc, string lpString, int c, Size size) where T : IHandle<HDC> 15BOOL result = GetTextExtentPoint32W(hdc.Handle, pString, c, (SIZE*)(void*)&size);
Windows\Win32\PInvoke.ImageList.cs (3)
32BOOL result = ImageList_Draw(himl.Handle, i, hdcDst, x, y, fStyle); 121public static BOOL Write<T>(T himl, Stream pstm) where T : IHandle<HIMAGELIST> 124BOOL result = ImageList_Write(himl.Handle, stream);
Windows\Win32\PInvoke.ImmReleaseContext.cs (2)
11public static BOOL ImmReleaseContext<T>(T hWnd, HIMC hIMC) where T : IHandle<HWND> 13BOOL result = ImmReleaseContext(hWnd.Handle, hIMC);
Windows\Win32\PInvoke.InvalidateRect.cs (4)
8/// <inheritdoc cref="InvalidateRect(HWND, RECT*, BOOL)"/> 9public static unsafe BOOL InvalidateRect<T>(T hWnd, RECT* lpRect, BOOL bErase) 12BOOL result = InvalidateRect(hWnd.Handle, lpRect, bErase);
Windows\Win32\PInvoke.InvalidateRgn.cs (4)
8/// <inheritdoc cref="InvalidateRgn(HWND, HRGN, BOOL)"/> 9public static BOOL InvalidateRgn<T>(T hWnd, HRGN hrgn, BOOL erase) 12BOOL result = InvalidateRgn(hWnd.Handle, hrgn, erase);
Windows\Win32\PInvoke.IsChild.cs (2)
9public static BOOL IsChild<TParent, TChild>(TParent hWndParent, TChild hWnd) 13BOOL result = IsChild(hWndParent.Handle, hWnd.Handle);
Windows\Win32\PInvoke.IsWindow.cs (2)
9public static BOOL IsWindow<T>(T hWnd) where T : IHandle<HWND> 11BOOL result = IsWindow(hWnd.Handle);
Windows\Win32\PInvoke.IsWindowEnabled.cs (2)
9public static BOOL IsWindowEnabled<T>(T hWnd) where T : IHandle<HWND> 11BOOL result = IsWindowEnabled(hWnd.Handle);
Windows\Win32\PInvoke.IsWindowVisible.cs (2)
9public static BOOL IsWindowVisible<T>(T hWnd) where T : IHandle<HWND> 11BOOL result = IsWindowVisible(hWnd.Handle);
Windows\Win32\PInvoke.KillTimer.cs (2)
9public static BOOL KillTimer<T>(T hWnd, IntPtr uIDEvent) 12BOOL result = KillTimer(hWnd.Handle, uIDEvent);
Windows\Win32\PInvoke.PageSetupDialog.cs (1)
12public static extern unsafe BOOL PageSetupDlg(PAGESETUPDLGW* param0);
Windows\Win32\PInvoke.PrintDlg.cs (2)
12internal static extern unsafe BOOL PrintDlg(PRINTDLGW_64* pPD); 14internal static unsafe BOOL PrintDlg(PRINTDLGW_32* pPD)
Windows\Win32\PInvoke.RedrawWindow.cs (2)
9public static unsafe BOOL RedrawWindow<T>(T hWnd, RECT* lprcUpdate, HRGN hrgnUpdate, REDRAW_WINDOW_FLAGS flags) 12BOOL result = RedrawWindow(hWnd.Handle, lprcUpdate, hrgnUpdate, flags);
Windows\Win32\PInvoke.ScreenToClient.cs (2)
11public static BOOL ScreenToClient<T>(T hWnd, ref Point lpPoint) 14BOOL result = ScreenToClient(hWnd.Handle, ref lpPoint);
Windows\Win32\PInvoke.ScrollWindow.cs (2)
9public static unsafe BOOL ScrollWindow<T>(T hWnd, int XAmount, int YAmount, RECT* lpRect, RECT* rectClip) 12BOOL result = ScrollWindow(hWnd.Handle, XAmount, YAmount, lpRect, rectClip);
Windows\Win32\PInvoke.SendMessageCallback.cs (2)
11internal static unsafe BOOL SendMessageCallback<T>( 20BOOL result = SendMessageCallback(hWnd.Handle, Msg, wParam, lParam, &NativeCallback, (nuint)(nint)gcHandle);
Windows\Win32\PInvoke.SetForegroundWindow.cs (2)
9public static BOOL SetForegroundWindow<T>(T hWnd) where T : IHandle<HWND> 11BOOL result = SetForegroundWindow(hWnd.Handle);
Windows\Win32\PInvoke.SetLayeredWindowAttributes.cs (2)
9public static BOOL SetLayeredWindowAttributes<T>(T hwnd, COLORREF crKey, byte bAlpha, LAYERED_WINDOW_ATTRIBUTES_FLAGS dwFlags) 12BOOL result = SetLayeredWindowAttributes(hwnd.Handle, crKey, bAlpha, dwFlags);
Windows\Win32\PInvoke.SetMenu.cs (4)
9public static BOOL SetMenu<T>(T hWnd, HMENU hMenu) 12BOOL result = SetMenu(hWnd.Handle, hMenu); 18public static BOOL SetMenu<T1, T2>(T1 hWnd, T2 hMenu) 22BOOL result = SetMenu(hWnd.Handle, hMenu.Handle);
Windows\Win32\PInvoke.SetScrollInfo.cs (2)
8/// <inheritdoc cref="SetScrollInfo(HWND, SCROLLBAR_CONSTANTS, in SCROLLINFO, BOOL)"/> 9public static int SetScrollInfo<T>(T hWnd, SCROLLBAR_CONSTANTS nBar, ref SCROLLINFO lpsi, BOOL redraw)
Windows\Win32\PInvoke.SetScrollPos.cs (2)
8/// <inheritdoc cref="SetScrollPos(HWND, SCROLLBAR_CONSTANTS, int, BOOL)"/> 9public static int SetScrollPos<T>(T hWnd, SCROLLBAR_CONSTANTS nBar, int nPos, BOOL bRedraw)
Windows\Win32\PInvoke.SetWindowPos.cs (2)
9public static BOOL SetWindowPos<T1, T2>(T1 hWnd, T2 hWndInsertAfter, int X, int Y, int cx, int cy, SET_WINDOW_POS_FLAGS uFlags) 13BOOL result = SetWindowPos(hWnd.Handle, hWndInsertAfter.Handle, X, Y, cx, cy, uFlags);
Windows\Win32\PInvoke.SetWindowRgn.cs (2)
8/// <inheritdoc cref="SetWindowRgn(HWND, HRGN, BOOL)"/> 9public static int SetWindowRgn<T>(T hwnd, HRGN hrgn, BOOL fRedraw)
Windows\Win32\PInvoke.SetWindowText.cs (2)
9public static BOOL SetWindowText<T>(T hWnd, string text) where T : IHandle<HWND> 11BOOL result = SetWindowText(hWnd.Handle, text);
Windows\Win32\PInvoke.Shell_NotifyIconW.cs (1)
12public static extern BOOL Shell_NotifyIconW(NOTIFY_ICON_MESSAGE dwMessage, ref NOTIFYICONDATAW lpData);
Windows\Win32\PInvoke.ShowWindow.cs (2)
9public static BOOL ShowWindow<T>(T hWnd, SHOW_WINDOW_CMD nCmdShow) where T : IHandle<HWND> 11BOOL result = ShowWindow(hWnd.Handle, nCmdShow);
Windows\Win32\PInvoke.UpdateWindow.cs (2)
9public static BOOL UpdateWindow<T>(T hWnd) where T : IHandle<HWND> 11BOOL result = UpdateWindow(hWnd.Handle);
Windows\Win32\PInvoke.ValidateRect.cs (2)
9public static unsafe BOOL ValidateRect<T>(T hWnd, RECT* lpRect) 12BOOL result = ValidateRect(hWnd.Handle, lpRect);
Windows\Win32\UI\Controls\ToolInfoWrapper.cs (1)
47LRESULT result = PInvokeCore.SendMessage(sender, message, (WPARAM)(BOOL)state, (LPARAM)i);
System.Windows.Forms.Primitives.Tests (25)
Interop\Oleaut32\SAFEARRAYTests.cs (1)
160public BOOL IsMatchingType(IRecordInfo* pRecordInfoInfo) => throw new NotImplementedException();
Interop\Oleaut32\VARIANTTests.cs (9)
1320yield return new object[] { Array.Empty<BOOL>(), Array.Empty<bool>() }; 1321yield return new object[] { new BOOL[] { BOOL.TRUE, BOOL.FALSE, BOOL.TRUE }, new bool[] { true, false, true } }; 1329BOOL[] boolResult = (BOOL[])result; 1330fixed (BOOL* pResult = boolResult) 5727public BOOL IsMatchingType(IRecordInfo* pRecordInfoInfo) => throw new NotImplementedException();
System\Windows\Forms\Automation\UiaTextRangeTests.cs (15)
245BOOL actual = default; 413yield return new object?[] { "text", "text", BOOL.FALSE, BOOL.FALSE }; 414yield return new object?[] { "other", null, BOOL.FALSE, BOOL.FALSE }; 415yield return new object?[] { "TEXT", "text", BOOL.FALSE, BOOL.TRUE }; 416yield return new object?[] { "TEXT", null, BOOL.FALSE, BOOL.FALSE }; 421internal void UiaTextRange_ITextRangeProvider_FindText_Returns_Correct(string textToSearch, string? foundText, BOOL backward, BOOL ignoreCase) 454Assert.True(((ITextRangeProvider.Interface)textRange).FindText(default, BOOL.TRUE, BOOL.TRUE, actual).Failed); 1024Assert.True(((ITextRangeProvider.Interface)textRange).ScrollIntoView(BOOL.TRUE).Succeeded); 1050Assert.True(((ITextRangeProvider.Interface)textRange).ScrollIntoView(BOOL.TRUE).Succeeded);
System.Windows.Forms.Primitives.TestUtilities (2)
Metafiles\EmfScope.cs (1)
233private static unsafe BOOL CallBack(
Metafiles\RecordTypes\ENHMETAHEADER.cs (1)
39public BOOL bOpenGL; // TRUE if OpenGL commands are present in
System.Windows.Forms.Tests (40)
System\Windows\Forms\AccessibleObjects\ListBoxAccessibleObjectTests.cs (2)
176Assert.True(provider.get_IsSelectionRequired(out BOOL result).Succeeded); 197Assert.True(provider.get_CanSelectMultiple(out BOOL result).Succeeded);
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (1)
1774Assert.True(provider.get_CanSelectMultiple(out BOOL result).Succeeded);
System\Windows\Forms\Application.ComponentManagerTests.cs (10)
347BOOL IMsoComponent.Interface.FDebugMessage(nint hInst, uint msg, WPARAM wParam, LPARAM lParam) 350BOOL IMsoComponent.Interface.FPreTranslateMessage(MSG* msg) 353void IMsoComponent.Interface.OnEnterState(msocstate uStateID, BOOL fEnter) 356void IMsoComponent.Interface.OnAppActivate(BOOL fActive, uint dwOtherThreadID) 363BOOL fSameComponent, 365BOOL fHostIsActivating, 369BOOL IMsoComponent.Interface.FDoIdle(msoidlef grfidlef) => _mock.FDoIdle(grfidlef); 371BOOL IMsoComponent.Interface.FContinueMessageLoop( 376BOOL IMsoComponent.Interface.FQueryTerminate(BOOL fPromptUser) => _mock.FQueryTerminate(fPromptUser);
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (2)
212BOOL isActive = default; 231BOOL isActive = default;
System\Windows\Forms\ComponentModel\Com2Interop\COM2PictureConverterTests.cs (3)
198public HRESULT get_KeepOriginalFormat(BOOL* pKeep) => HRESULT.S_OK; 199public HRESULT put_KeepOriginalFormat(BOOL keep) => HRESULT.S_OK; 206public HRESULT SaveAsFile(IStream* pStream, BOOL fSaveMemCopy, int* pCbSize) => HRESULT.S_OK;
System\Windows\Forms\Control.ActiveXImplTests.cs (3)
23HRESULT hr = persistStream.Save(istream.Value, fClearDirty: BOOL.FALSE); 48Assert.Throws<NotSupportedException>(() => persistStream.Save(istreamPointer, fClearDirty: BOOL.FALSE)); 65HRESULT hr = persistStream.Save(istream.Value, fClearDirty: BOOL.FALSE);
System\Windows\Forms\DataObjectTests.cs (4)
2609pDropFiles->fNC.Should().Be(BOOL.FALSE); 2610pDropFiles->fWide.Should().Be(BOOL.TRUE); 2650pDropFiles->fNC.Should().Be(BOOL.FALSE); 2651pDropFiles->fWide.Should().Be(BOOL.FALSE);
System\Windows\Forms\DragDropFormatTests.cs (3)
39BOOL.Size) 188*(BOOL*)basePtr = (BOOL)inDragLoop;
System\Windows\Forms\DragDropHelperTests.cs (1)
357bool inShellDragLoop = (basePtr is not null) && (*(BOOL*)basePtr == true);
System\Windows\Forms\FormTests.cs (1)
2685Assert.True((BOOL)message.ResultInternal);
System\Windows\Forms\TextBoxBase.TextBoxBaseUiaTextProviderTests.cs (2)
141BOOL isActive = default; 153BOOL isActive = default;
TextBoxBaseTests.cs (2)
1821PInvokeCore.SendMessage(control, PInvokeCore.EM_SETMODIFY, (WPARAM)(BOOL)true); 2323PInvokeCore.SendMessage(control, PInvokeCore.EM_SETREADONLY, (WPARAM)(BOOL)true);
TextBoxTests.cs (6)
422PInvokeCore.SendMessage(tb, PInvokeCore.WM_PAINT, (WPARAM)(BOOL)false); 424PInvokeCore.SendMessage(tb, PInvokeCore.WM_PAINT, (WPARAM)(BOOL)false); 426PInvokeCore.SendMessage(tb, PInvokeCore.WM_PAINT, (WPARAM)(BOOL)false); 441PInvokeCore.SendMessage(tb, PInvokeCore.WM_PAINT, (WPARAM)(BOOL)false); 443PInvokeCore.SendMessage(tb, PInvokeCore.WM_PAINT, (WPARAM)(BOOL)false); 445PInvokeCore.SendMessage(tb, PInvokeCore.WM_PAINT, (WPARAM)(BOOL)false);
System.Windows.Forms.UI.IntegrationTests (1)
DragDropTests.cs (1)
186Assert.Equal(HRESULT.S_OK, uiAutomationElement.Value->GetClickablePoint(out Point clickable, out BOOL gotClickable));