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