14 instantiations of ComScope
System.Private.Windows.Core (14)
Windows\Win32\System\Com\ComHelpers.cs (6)
29new(GetComPointer<T>(@object)); 41new(TryGetComPointer<T>(@object, out hr)); 248using ComScope<IUnknown> unknown = new(null); 257using ComScope<IUnknown> ccw = new((IUnknown*)(void*)Marshal.GetIUnknownForObject(@object)); 338using ComScope<ITypeLib> typelib = new(null); 342ComScope<ITypeInfo> typeInfo = new(null);
Windows\Win32\System\Com\ComScope.cs (4)
62ComScope<TTo> scope = new(null); 72ComScope<TTo> scope = new(null); 82ComScope<T> scope = new(null); 97ComScope<T> scope = new(null);
Windows\Win32\System\Com\GlobalInterfaceTable.cs (1)
55ComScope<TInterface> @interface = new(null);
Windows\Win32\System\Ole\IPicture.cs (2)
21ComScope<IPicture> picture = new(null); 36ComScope<IPicture> picture = new(null);
Windows\Win32\System\Ole\IPictureDisp.cs (1)
20ComScope<IPictureDisp> picture = new(null);
283 references to ComScope
ComDisabled.Tests (2)
DataObjectComTests.cs (2)
26var inDataPtr = ComHelpers.GetComScope<Com.IDataObject>(inData); 44var inDataPtr = ComHelpers.GetComScope<Com.IDataObject>(inData);
System.Private.Windows.Core (54)
System\Drawing\CoreImageExtensions.cs (1)
27using var iStream = stream.ToIStream();
System\IO\StreamExtensions.cs (1)
15internal static ComScope<IStream> ToIStream(this Stream stream, bool makeSeekable = false)
Windows\Win32\System\Com\AgileComPointer.cs (13)
66using var currentUnknown = GetInterface<IUnknown>(); 67using var otherUnknown = other.GetInterface<IUnknown>(); 74using var currentUnknown = GetInterface<IUnknown>(); 75using ComScope<IUnknown> otherUnknown = ComScope<IUnknown>.QueryFrom(other); 82public ComScope<TInterface> GetInterface() 84var scope = GlobalInterfaceTable.GetInterface<TInterface>(_cookie, out HRESULT hr); 92public ComScope<TAsInterface> GetInterface<TAsInterface>() 95var scope = TryGetInterface<TAsInterface>(out HRESULT hr); 103public ComScope<TInterface> TryGetInterface(out HRESULT hr) 109public ComScope<TAsInterface> TryGetInterface<TAsInterface>(out HRESULT hr) 112var scope = GlobalInterfaceTable.GetInterface<TAsInterface>(_cookie, out hr); 122using var scope = GetInterface();
Windows\Win32\System\Com\ComHelpers.cs (11)
28internal static ComScope<T> GetComScope<T>(object? @object) where T : unmanaged, IComIID => 34internal static ComScope<T> TryGetComScope<T>(object? @object) where T : unmanaged, IComIID => 40internal static ComScope<T> TryGetComScope<T>(object? @object, out HRESULT hr) where T : unmanaged, IComIID => 68using var scope = TryGetComScope<T>(@object, out HRESULT hr); 158ComScope<TInterface> comScope, 248using ComScope<IUnknown> unknown = new(null); 257using ComScope<IUnknown> ccw = new((IUnknown*)(void*)Marshal.GetIUnknownForObject(@object)); 282internal static object GetObjectForIUnknown<TInterface>(ComScope<TInterface> comScope) 323public static ComScope<ITypeInfo> GetRegisteredTypeInfo( 338using ComScope<ITypeLib> typelib = new(null); 342ComScope<ITypeInfo> typeInfo = new(null);
Windows\Win32\System\Com\ComScope.cs (17)
42public static implicit operator T*(in ComScope<T> scope) => (T*)scope._value; 44public static implicit operator void*(in ComScope<T> scope) => (void*)scope._value; 46public static implicit operator nint(in ComScope<T> scope) => scope._value; 49public static implicit operator T**(in ComScope<T> scope) => (T**)Unsafe.AsPointer(ref Unsafe.AsRef(in scope._value)); 52public static implicit operator void**(in ComScope<T> scope) => (void**)Unsafe.AsPointer(ref Unsafe.AsRef(in scope._value)); 57/// Tries querying the requested interface into a new <see cref="ComScope{T}"/>. 60public ComScope<TTo> TryQuery<TTo>(out HRESULT hr) where TTo : unmanaged, IComIID 62ComScope<TTo> scope = new(null); 68/// Queries the requested interface into a new <see cref="ComScope{T}"/>. 70public ComScope<TTo> Query<TTo>() where TTo : unmanaged, IComIID 72ComScope<TTo> scope = new(null); 78/// Attempt to create a <see cref="ComScope{T}"/> from the given COM interface. 80public static ComScope<T> TryQueryFrom<TFrom>(TFrom* from, out HRESULT hr) where TFrom : unmanaged, IComIID 82ComScope<T> scope = new(null); 88/// Create a <see cref="ComScope{T}"/> from the given COM interface. Throws on failure. 90public static ComScope<T> QueryFrom<TFrom>(TFrom* from) where TFrom : unmanaged, IComIID 97ComScope<T> scope = new(null);
Windows\Win32\System\Com\GlobalInterfaceTable.cs (2)
52public static ComScope<TInterface> GetInterface<TInterface>(uint cookie, out HRESULT result) 55ComScope<TInterface> @interface = new(null);
Windows\Win32\System\Ole\IPicture.cs (6)
14using ComScope<IPicture> picture = CreateFromImage(image); 18public static ComScope<IPicture> CreateFromImage(IImage image) 21ComScope<IPicture> picture = new(null); 29using ComScope<IPicture> picture = CreateFromIcon(icon, copy); 33public static ComScope<IPicture> CreateFromIcon(IIcon icon, bool copy) 36ComScope<IPicture> picture = new(null);
Windows\Win32\System\Ole\IPictureDisp.cs (3)
13using ComScope<IPictureDisp> picture = CreateFromImage(image); 17public static ComScope<IPictureDisp> CreateFromImage(IImage image) 20ComScope<IPictureDisp> picture = new(null);
System.Windows.Forms (73)
System\Windows\Forms\Accessibility\AccessibleObject.cs (4)
1287using var selection = ComHelpers.GetComScope<IRawElementProviderSimple>(selected); 3238using var provider = ComHelpers.GetComScope<IRawElementProviderSimple>(this); 3250using var provider = ComHelpers.GetComScope<IRawElementProviderSimple>(this); 3270using var provider = ComHelpers.GetComScope<IRawElementProviderSimple>(this);
System\Windows\Forms\Accessibility\LabelEditUiaTextProvider.cs (2)
167using var selection = ComHelpers.GetComScope<ITextRangeProvider>(new UiaTextRange(_owningChildEditAccessibilityObject, this, start, end)); 215using var ranges = ComHelpers.GetComScope<ITextRangeProvider>(new UiaTextRange(_owningChildEditAccessibilityObject, this, start, end));
System\Windows\Forms\ActiveX\AxHost.AxContainer.cs (1)
661using var oleObject = ComScope<IOleObject>.TryQueryFrom(pActiveObject, out HRESULT hr);
System\Windows\Forms\ActiveX\AxHost.cs (14)
1883using var persistStream = ComHelpers.GetComScope<IPersistStream>(_instance); 1888using var persistStreamInit = ComHelpers.GetComScope<IPersistStreamInit>(_instance); 1901using var persistStorage = ComHelpers.GetComScope<IPersistStorage>(_instance); 1908using (var propertyBag = ComHelpers.GetComScope<IPropertyBag>(propBag)) 1909using (var persistPropBag = ComHelpers.GetComScope<IPersistPropertyBag>(_instance)) 2033using (var persistStream = ComHelpers.GetComScope<IPersistStream>(_instance)) 2040using (var persistStreamInit = ComHelpers.GetComScope<IPersistStreamInit>(_instance)) 2047using (var persistStorage = ComHelpers.GetComScope<IPersistStorage>(_instance)) 2787using var persistStream = ComHelpers.GetComScope<IPersistStream>(_instance); 2823using var persistStorage = ComHelpers.GetComScope<IPersistStorage>(_instance); 2836using var persistPropBag = ComHelpers.GetComScope<IPersistPropertyBag>(_instance); 3026using var unknown = ComHelpers.GetComScope<IUnknown>(_instance); 3471using var clientSite = ComHelpers.GetComScope<IOleClientSite>(_oleSite); 3480using var clientSite = ComHelpers.GetComScope<IOleClientSite>(_oleSite);
System\Windows\Forms\ActiveX\Control.ActiveXFontMarshaler.cs (1)
60using var nativeFont = ComScope<IFont>.TryQueryFrom((IUnknown*)pObj, out HRESULT hr);
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (4)
211using var font = ComScope<IFont>.TryQueryFrom(value.data.punkVal, out HRESULT hr); 896using var activeObject = ComHelpers.GetComScope<IOleInPlaceActiveObject>(_control); 1032using var propertyBag = ComHelpers.GetComScope<IPropertyBag>(bagStream); 1485using var propertyBag = ComHelpers.GetComScope<IPropertyBag>(bagStream);
System\Windows\Forms\ActiveX\Control.AxSourcingSite.cs (1)
42using var document = container.TryQuery<IHTMLDocument>(out HRESULT hr);
System\Windows\Forms\Application.ComponentThreadContext.cs (2)
103using var serviceProvider = messageFilter.TryQuery<ComIServiceProvider>(out HRESULT hr); 120var componentManager = serviceHandle.TryQuery<IMsoComponentManager>(out hr);
System\Windows\Forms\ComponentModel\COM2Interop\COM2ComponentEditor.cs (2)
62using var unknown = ComHelpers.GetComScope<IUnknown>(obj); 96using var unknown = ComHelpers.GetComScope<IUnknown>(obj);
System\Windows\Forms\ComponentModel\COM2Interop\COM2FontConverter.cs (2)
31using var iFont = ComScope<IFont>.TryQueryFrom((IUnknown*)nativeValue, out HRESULT hr); 86using var font = ComScope<IFont>.TryQueryFrom((IUnknown*)nativeValue, out HRESULT hr);
System\Windows\Forms\ComponentModel\COM2Interop\COM2PictureConverter.cs (1)
40using var picture = ComScope<IPicture>.TryQueryFrom((IUnknown*)nativeValue, out HRESULT hr);
System\Windows\Forms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (1)
255using var dispatch = ComHelpers.GetComScope<IDispatch>(comObject);
System\Windows\Forms\Control.cs (2)
4834using var dropSource = ComHelpers.GetComScope<IDropSource>( 4836using var dataScope = ComHelpers.GetComScope<Com.IDataObject>(dataObject);
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxUiaTextProvider.cs (2)
228using var selection = ComHelpers.GetComScope<ITextRangeProvider>(new UiaTextRange(_owningComboBox.ChildEditAccessibleObject, this, start, end)); 282using var ranges = ComHelpers.GetComScope<ITextRangeProvider>(new UiaTextRange(_owningComboBox.ChildEditAccessibleObject, this, start, end));
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
3099using var oleCallback = ComHelpers.GetComScope<IRichEditOleCallback>(_oleCallback);
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
1637using var textDocument = richEdit.TryQuery<ITextDocument>(out HRESULT hr);
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (2)
49using var selection = ComHelpers.GetComScope<ITextRangeProvider>(new UiaTextRange(Owner.AccessibilityObject, this, start, end)); 73using var ranges = ComHelpers.GetComScope<ITextRangeProvider>(new UiaTextRange(Owner.AccessibilityObject, this, start, end));
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (2)
2193using var dropSource = ComHelpers.GetComScope<IDropSource>(CreateDropSource(dataObject, dragImage, cursorOffset, useDefaultDragImage)); 2194using var dataObjectScope = ComHelpers.GetComScope<Com.IDataObject>(dataObject);
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.cs (2)
40using var scope = _htmlDocument2.GetInterface<IUnknown>(); 488using var htmlDoc = dispatch.TryQuery<IHTMLDocument>(out HRESULT hr);
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.HtmlDocumentShim.cs (2)
57using var dispatch = ComHelpers.GetComScope<IDispatch>(proxy); 90using var dispatch = ComHelpers.GetComScope<IDispatch>(proxy);
System\Windows\Forms\Controls\WebBrowser\HtmlElement.cs (3)
46using var scope = _htmlElement.GetInterface<IUnknown>(); 121using var htmlDocument = dispatch.TryQuery<IHTMLDocument>(out HRESULT hr); 555using var insertedElement = ComHelpers.GetComScope<IHTMLElement>(newElement.DomElement);
System\Windows\Forms\Controls\WebBrowser\HtmlElement.HtmlElementShim.cs (2)
82using var dispatch = ComHelpers.GetComScope<IDispatch>(proxy); 114using var dispatch = ComHelpers.GetComScope<IDispatch>(proxy);
System\Windows\Forms\Controls\WebBrowser\HtmlWindow.cs (2)
33using var scope = _htmlWindow2.GetInterface<IUnknown>(); 81using var htmlDoc = htmlDoc2.TryQuery<IHTMLDocument>(out HRESULT hr);
System\Windows\Forms\Controls\WebBrowser\HtmlWindow.HtmlWindowShim.cs (2)
49using var dispatch = ComHelpers.GetComScope<IDispatch>(proxy); 80using var dispatch = ComHelpers.GetComScope<IDispatch>(proxy);
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (4)
227using var iHTMLDocument2 = dispatch.TryQuery<IHTMLDocument2>(out HRESULT hr); 241using var htmlDoc = dispatch.TryQuery<IHTMLDocument>(out hr); 358using var htmlDocument2 = ComHelpers.GetComScope<IHTMLDocument2>(htmlDocument.DomDocument); 383using var htmlDocument2 = ComHelpers.GetComScope<IHTMLDocument2>(htmlDocument.DomDocument);
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
672using var clientSite = ComHelpers.GetComScope<IOleClientSite>(ActiveXSite);
System\Windows\Forms\Controls\WebBrowser\WebBrowserContainer.cs (1)
103using var oleObject = ComScope<IOleObject>.TryQueryFrom(pActiveObject, out HRESULT hr);
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.Vista.cs (1)
36using var events = ComHelpers.GetComScope<IFileDialogEvents>(new VistaDialogEvents(this));
System\Windows\Forms\Dialogs\CommonDialogs\OpenFileDialog.cs (1)
145using var openDialog = ComScope<IFileOpenDialog>.QueryFrom(dialog);
System\Windows\Forms\Input\Cursor.cs (1)
411using var pStream = ComHelpers.GetComScope<IStream>(stream);
System\Windows\Forms\OLE\Clipboard.cs (2)
47using var dataObject = ComHelpers.GetComScope<Com.IDataObject>(wrappedData); 110var realDataObject = proxyDataObject.TryQuery<IComCallableWrapper>(out hr);
System\Windows\Forms\OLE\DragDropHelper.cs (3)
98using var dataObjectScope = ComHelpers.GetComScope<Com.IDataObject>(dataObject); 145using var dataObjectScope = ComHelpers.GetComScope<Com.IDataObject>(dataObject); 366using var dataObjectScope = ComHelpers.GetComScope<Com.IDataObject>(dataObject);
System\Windows\Forms\OLE\DropTarget.cs (1)
49using var unknown = ComScope<IUnknown>.QueryFrom(nativeDataObject);
System.Windows.Forms.Primitives (3)
Windows\Win32\PInvoke.UiaDisconnectProvider.cs (1)
15using var providerScope = ComHelpers.GetComScope<IRawElementProviderSimple>(provider);
Windows\Win32\PInvoke.UiaRaiseNotificationEvent.cs (1)
20using var providerScope = ComHelpers.GetComScope<IRawElementProviderSimple>(provider);
Windows\Win32\System\Com\ComSafeArrayScopeExtensions.cs (1)
27using var pointer = ComHelpers.GetComScope<TComStruct>(interfaces[i]);
System.Windows.Forms.Primitives.Tests (31)
Interop\Ole32\IPictureTests.cs (5)
20using var picture = IPicture.CreateFromIcon(Icon.FromHandle(arrow.Handle), copy: true); 37using var picture = IPicture.CreateFromImage(bitmap); 53using var picture = IPictureDisp.CreateFromImage(bitmap); 73using var picture = IPicture.CreateFromImage(bitmap); 84using var picture = IPictureDisp.CreateFromImage(bitmap);
Interop\Oleaut32\ITypeInfoTests.cs (16)
18using var iPictureDisp = IPictureDisp.CreateFromImage(image); 32using var iPictureDisp = IPictureDisp.CreateFromImage(image); 46using var iPictureDisp = IPictureDisp.CreateFromImage(image); 62using var iPictureDisp = IPictureDisp.CreateFromImage(image); 82using var iPictureDisp = IPictureDisp.CreateFromImage(image); 102using var iPictureDisp = IPictureDisp.CreateFromImage(image); 136using var iPictureDisp = IPictureDisp.CreateFromImage(image); 160using var iPictureDisp = IPictureDisp.CreateFromImage(image); 174using var iPictureDisp = IPictureDisp.CreateFromImage(image); 188using var iPictureDisp = IPictureDisp.CreateFromImage(image); 210using var iPictureDisp = IPictureDisp.CreateFromImage(image); 227using var iPictureDisp = IPictureDisp.CreateFromImage(image); 241using var iPictureDisp = IPictureDisp.CreateFromImage(image); 280using var iPictureDisp = IPictureDisp.CreateFromImage(image); 293using var iPictureDisp = IPictureDisp.CreateFromImage(image); 322using var iPictureDisp = IPictureDisp.CreateFromImage(image);
System\Windows\Forms\Automation\UiaTextRangeTests.cs (3)
246using var textRange2Scope = ComHelpers.GetComScope<ITextRangeProvider>(textRange2); 276using var textRangeScope = ComHelpers.GetComScope<ITextRangeProvider>(targetRange); 963using var targetRangeScope = ComHelpers.GetComScope<ITextRangeProvider>(targetRange);
Windows\Win32\AgileComPointerTests.cs (1)
44using var proxyUnknownPtr = proxyAgileStream.GetInterface<IUnknown>();
Windows\Win32\System\Com\ComSafeArrayScopeTests.cs (1)
32using var expected = ComHelpers.GetComScope<IRawElementProviderSimple>(providers[0]);
Windows\Win32\System\Com\IDispatchTests.cs (4)
17using var picture = IPictureDisp.CreateFromImage(image); 41using var picture = IPictureDisp.CreateFromImage(image); 52using var picture = IPictureDisp.CreateFromImage(image); 64using var picture = IPictureDisp.CreateFromImage(image);
Windows\Win32\UI\Accessibility\AccessibleDispatchTests.cs (1)
17using var dispatch = ComHelpers.GetComScope<IDispatch>(accessibleObject);
System.Windows.Forms.Tests (119)
SerializableTypesTests.cs (3)
45using var resultPropBag = result.GetPropBag(); 47using var statePropBag = state.GetPropBag(); 59using var streamOut = result.GetStream();
System\Windows\Forms\Application.ComponentManagerTests.cs (11)
43using var component = ComHelpers.GetComScope<IMsoComponent>(new MockWrapper(mock.Object)); 57using var component = ComHelpers.GetComScope<IMsoComponent>(new MockWrapper(mock.Object)); 70using var component = ComHelpers.GetComScope<IMsoComponent>(new MockWrapper(mock.Object)); 90using var component = ComHelpers.GetComScope<IMsoComponent>(new MockWrapper(mock.Object)); 106using var component = ComHelpers.GetComScope<IMsoComponent>(new MockWrapper(mock.Object)); 120using var component = ComHelpers.GetComScope<IMsoComponent>(new MockWrapper(mock.Object)); 151using var component = ComHelpers.GetComScope<IMsoComponent>(new MockWrapper(mock.Object)); 182using var component = ComHelpers.GetComScope<IMsoComponent>(new MockWrapper(new MockWrapper(mock.Object))); 213using var component = ComHelpers.GetComScope<IMsoComponent>(new MockWrapper(mock.Object)); 296using var component1 = ComHelpers.GetComScope<IMsoComponent>(new MockWrapper(mock1.Object)); 299using var component2 = ComHelpers.GetComScope<IMsoComponent>(new MockWrapper(mock2.Object));
System\Windows\Forms\AxHostTests.cs (3)
1610using var iPictureDisp = ComHelpers.GetComScope<IDispatch>(disp); 1635using var iPictureDisp = ComHelpers.GetComScope<IDispatch>(disp); 3081using var ocx = ComHelpers.GetComScope<IUnknown>(control.GetOcx());
System\Windows\Forms\ClipboardTests.cs (5)
536using var dataScope = ComHelpers.GetComScope<Com.IDataObject>(data); 543using var dataUnknown = dataScope.Query<Com.IUnknown>(); 544using var proxyUnknown = proxy.Query<Com.IUnknown>(); 548using var realDataPointer = proxy.Query<Com.IComCallableWrapper>(); 549using var realDataPointerUnknown = realDataPointer.Query<Com.IUnknown>();
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (1)
893using var rawElementProvider = ComHelpers.GetComScope<IRawElementProviderSimple>(comboBox.AccessibilityObject);
System\Windows\Forms\ComponentModel\Com2Interop\COM2PictureConverterTests.cs (4)
68using var unknown = ComHelpers.GetComScope<IUnknown>(nullIPicture); 78using var unknown = ComHelpers.GetComScope<IUnknown>(iconIPicture); 99using var unknown = ComHelpers.GetComScope<IUnknown>(bitmapIPicture); 121using var unknown = ComHelpers.GetComScope<IUnknown>(new TestIPicture(1, PICTYPE.PICTYPE_METAFILE));
System\Windows\Forms\ComponentModel\Com2Interop\ComNativeDescriptorTests.cs (2)
33using var iPictureDisp = IPictureDisp.CreateFromImage(bitmap); 188using var accessible = ComHelpers.GetComScope<IAccessible>(value);
System\Windows\Forms\DataObjectComTests.cs (2)
27var inDataPtr = ComHelpers.GetComScope<Com.IDataObject>(inData); 45var inDataPtr = ComHelpers.GetComScope<Com.IDataObject>(inData);
System\Windows\Forms\DataObjectTests.cs (4)
2436using var inDataPtr = ComHelpers.GetComScope<Com.IDataObject>(inData); 2451using var inDataPtr = ComHelpers.GetComScope<Com.IDataObject>(inData); 2468using var inDataPtr = ComHelpers.GetComScope<Com.IDataObject>(inData); 2484using var inDataPtr = ComHelpers.GetComScope<Com.IDataObject>(inData);
System\Windows\Forms\HtmlDocumentTests.cs (33)
94using var iHTMLDocument2 = ComHelpers.GetComScope<IHTMLDocument2>(document.DomDocument); 119using var iHTMLDocument2 = ComHelpers.GetComScope<IHTMLDocument2>(document.DomDocument); 224using var iHtmlElement2 = ComHelpers.GetComScope<IHTMLElement2>(active.DomElement); 310using var iHTMLDocument2 = ComHelpers.GetComScope<IHTMLDocument2>(document.DomDocument); 342using var iHTMLDocument2 = ComHelpers.GetComScope<IHTMLDocument2>(document.DomDocument); 408using var iHtmlDomNode = ComHelpers.GetComScope<IHTMLDOMNode>(element.Parent.DomElement); 409using var domElement = ComHelpers.GetComScope<IHTMLDOMNode>(element.DomElement); 453using var iHTMLDocument2 = ComHelpers.GetComScope<IHTMLDocument2>(document.DomDocument); 511using var iHTMLDocument2 = ComHelpers.GetComScope<IHTMLDocument2>(document.DomDocument); 616using var iHTMLDocument2 = ComHelpers.GetComScope<IHTMLDocument2>(document.DomDocument); 640using var iHTMLDocument2 = ComHelpers.GetComScope<IHTMLDocument2>(document.DomDocument); 702using var iHTMLDocument4 = ComHelpers.GetComScope<IHTMLDocument4>(document.DomDocument); 790using var iHTMLDocument2 = ComHelpers.GetComScope<IHTMLDocument2>(document.DomDocument); 813using var iHTMLDocument2 = ComHelpers.GetComScope<IHTMLDocument2>(document.DomDocument); 979using var iHTMLDocument2 = ComHelpers.GetComScope<IHTMLDocument2>(document.DomDocument); 1003using var iHTMLDocument2 = ComHelpers.GetComScope<IHTMLDocument2>(document.DomDocument); 1116using var iHTMLDocument3 = ComHelpers.GetComScope<IHTMLDocument3>(document.DomDocument); 1141using var iHTMLDocument3 = ComHelpers.GetComScope<IHTMLDocument3>(document.DomDocument); 1205using var iHTMLDocument2 = ComHelpers.GetComScope<IHTMLDocument2>(document.DomDocument); 1229using var iHTMLDocument2 = ComHelpers.GetComScope<IHTMLDocument2>(document.DomDocument); 1342using var iHTMLDocument2 = ComHelpers.GetComScope<IHTMLDocument2>(document.DomDocument); 1366using var iHTMLDocument2 = ComHelpers.GetComScope<IHTMLDocument2>(document.DomDocument); 1487using var iHTMLDocument4 = ComHelpers.GetComScope<IHTMLDocument4>(document.DomDocument); 2015using var iHTMLDocument4 = ComHelpers.GetComScope<IHTMLDocument4>(document.DomDocument); 2054using var iHTMLDocument4 = ComHelpers.GetComScope<IHTMLDocument4>(document.DomDocument); 2092using var iHTMLDocument4 = ComHelpers.GetComScope<IHTMLDocument4>(document.DomDocument); 2130using var iHTMLDocument4 = ComHelpers.GetComScope<IHTMLDocument4>(document.DomDocument); 2168using var iHTMLDocument4 = ComHelpers.GetComScope<IHTMLDocument4>(document.DomDocument); 2206using var iHTMLDocument4 = ComHelpers.GetComScope<IHTMLDocument4>(document.DomDocument); 2244using var iHTMLDocument4 = ComHelpers.GetComScope<IHTMLDocument4>(document.DomDocument); 2282using var iHTMLDocument4 = ComHelpers.GetComScope<IHTMLDocument4>(document.DomDocument); 2320using var iHTMLDocument4 = ComHelpers.GetComScope<IHTMLDocument4>(document.DomDocument); 2358using var iHTMLDocument4 = ComHelpers.GetComScope<IHTMLDocument4>(document.DomDocument);
System\Windows\Forms\HtmlElementTests.cs (45)
224using var iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement); 247using var iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement); 351using var iHTMLElement = ComHelpers.GetComScope<IHTMLElement>(element.DomElement); 376using var iHTMLElement = ComHelpers.GetComScope<IHTMLElement>(element.DomElement); 441using var iHTMLElement = ComHelpers.GetComScope<IHTMLElement>(element.DomElement); 467using var iHTMLElement = ComHelpers.GetComScope<IHTMLElement>(element.DomElement); 562using var iHTMLElement = ComHelpers.GetComScope<IHTMLElement>(element.DomElement); 588using var iHTMLElement = ComHelpers.GetComScope<IHTMLElement>(element.DomElement); 680using var iHTMLElement = ComHelpers.GetComScope<IHTMLElement>(element.DomElement); 706using var iHTMLElement = ComHelpers.GetComScope<IHTMLElement>(element.DomElement); 863using var iHTMLElement = ComHelpers.GetComScope<IHTMLElement>(element.DomElement); 894using var iHTMLElement = ComHelpers.GetComScope<IHTMLElement>(element.DomElement); 974using var iHTMLElement = ComHelpers.GetComScope<IHTMLElement>(element.DomElement); 1000using var iHTMLElement = ComHelpers.GetComScope<IHTMLElement>(element.DomElement); 1103using var iHTMLElement2 = ComHelpers.GetComScope<IHTMLElement2>(element.DomElement); 1127using var iHTMLElement2 = ComHelpers.GetComScope<IHTMLElement2>(element.DomElement); 1193using var iHTMLElement2 = ComHelpers.GetComScope<IHTMLElement2>(element.DomElement); 1217using var iHTMLElement2 = ComHelpers.GetComScope<IHTMLElement2>(element.DomElement); 1285using var iHTMLElement = ComHelpers.GetComScope<IHTMLElement>(element.DomElement); 1323using var iHTMLElement = ComHelpers.GetComScope<IHTMLElement>(element.DomElement); 1365using var iHTMLElement2 = ComHelpers.GetComScope<IHTMLElement2>(element.DomElement); 1389using var iHTMLElement2 = ComHelpers.GetComScope<IHTMLElement2>(element.DomElement); 1597using var iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement); 1639using var iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement); 1680using var iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement); 1868using var iHTMLElement = ComHelpers.GetComScope<IHTMLElement>(element.DomElement); 2563using var iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement); 2604using var iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement); 2645using var iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement); 2686using var iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement); 2728using var iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement); 2769using var iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement); 2810using var iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement); 2851using var iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement); 2892using var iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement); 2933using var iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement); 2974using var iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement); 3015using var iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement); 3056using var iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement); 3097using var iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement); 3138using var iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement); 3179using var iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement); 3220using var iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement); 3261using var iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement); 3302using var iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement);
System\Windows\Forms\HtmlToClrEventProxyTest.cs (3)
16using var dispatchEx = ComHelpers.GetComScope<IDispatchEx>(proxy); 43using var dispatchEx = ComHelpers.GetComScope<IDispatchEx>(proxy); 72using var dispatch = ComHelpers.GetComScope<IDispatch>(proxy);
System\Windows\Forms\WebBrowserTests.cs (3)
300using var webBrowser = ComHelpers.GetComScope<IWebBrowser2>(control.ActiveXInstance); 1733using var webBrowser = ComHelpers.GetComScope<IWebBrowser2>(control.ActiveXInstance); 3616using var webBrowser = ComHelpers.GetComScope<IWebBrowser2>(control.ActiveXInstance);
System.Windows.Forms.UI.IntegrationTests (1)
RichTextBoxTests.cs (1)
218using var textDocument = richEdit.TryQuery<ITextDocument>(out HRESULT hr);