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