21 instantiations of ComScope
System.Private.Windows.Core (21)
System\Private\Windows\Ole\ClipboardCore.cs (1)
142
proxyDataObject =
new
(null);
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (2)
374
using ComScope<Com.IStream> pStream =
new
((Com.IStream*)medium.hGlobal);
549
using ComScope<Com.IEnumFORMATETC> enumFORMATETC =
new
(null);
System\Private\Windows\Ole\Composition.NativeToRuntimeAdapter.cs (2)
48
using ComScope<Com.IEnumSTATDATA> nativeStatData =
new
(null);
57
using ComScope<Com.IEnumFORMATETC> nativeFormat =
new
(null);
System\Private\Windows\Ole\DragDropHelper.cs (5)
61
using ComScope<IDropTargetHelper> dropTargetHelper =
new
(null);
76
using ComScope<IDropTargetHelper> dropTargetHelper =
new
(null);
91
using ComScope<IDropTargetHelper> dropTargetHelper =
new
(null);
107
using ComScope<IDropTargetHelper> dropTargetHelper =
new
(null);
253
using ComScope<IDragSourceHelper2> dragSourceHelper =
new
(null);
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);
296 references to ComScope
ComDisabled.Tests (3)
DataObjectComTests.cs (3)
28
using
var
inDataPtr = ComHelpers.GetComScope<Com.IDataObject>(inData);
48
var
inDataPtr = ComHelpers.GetComScope<Com.IDataObject>(inData);
66
var
inDataPtr = ComHelpers.GetComScope<Com.IDataObject>(inData);
System.Private.Windows.Core (81)
System\IO\StreamExtensions.cs (1)
15
internal static
ComScope
<IStream> ToIStream(this Stream stream, bool makeSeekable = false)
System\Private\Windows\Ole\ClipboardCore.cs (5)
96
using
var
iDataObject = ComHelpers.GetComScope<IDataObject>(dataObject);
135
out
ComScope
<IDataObject> proxyDataObject,
166
using
ComScope
<IComCallableWrapper> realDataObject = proxyDataObject.TryQuery<IComCallableWrapper>(out HRESULT wrapperResult);
196
out
ComScope
<IDataObject> proxyDataObject,
221
out
ComScope
<IDataObject> proxyDataObject,
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (11)
36
using
var
nativeDataObject = _nativeDataObject.GetInterface();
42
using
var
nativeDataObject = _nativeDataObject.GetInterface();
48
using
var
nativeDataObject = _nativeDataObject.GetInterface();
54
using
var
nativeDataObject = _nativeDataObject.GetInterface();
60
using
var
nativeDataObject = _nativeDataObject.GetInterface();
66
using
var
nativeDataObject = _nativeDataObject.GetInterface();
72
using
var
nativeDataObject = _nativeDataObject.GetInterface();
78
using
var
nativeDataObject = _nativeDataObject.GetInterface();
84
using
var
nativeDataObject = _nativeDataObject.GetInterface();
374
using
ComScope
<Com.IStream> pStream = new((Com.IStream*)medium.hGlobal);
549
using
ComScope
<Com.IEnumFORMATETC> enumFORMATETC = new(null);
System\Private\Windows\Ole\Composition.NativeToRuntimeAdapter.cs (12)
31
using
var
nativeAdviseSink = ComHelpers.TryGetComScope<Com.IAdviseSink>(adviseSink);
35
using
var
nativeDataObject = _nativeDataObject.GetInterface();
42
using
var
nativeDataObject = _nativeDataObject.GetInterface();
48
using
ComScope
<Com.IEnumSTATDATA> nativeStatData = new(null);
49
using
var
nativeDataObject = _nativeDataObject.GetInterface();
57
using
ComScope
<Com.IEnumFORMATETC> nativeFormat = new(null);
58
using
var
nativeDataObject = _nativeDataObject.GetInterface();
69
using
var
nativeDataObject = _nativeDataObject.GetInterface();
79
using
var
nativeDataObject = _nativeDataObject.GetInterface();
89
using
var
nativeDataObject = _nativeDataObject.GetInterface();
97
using
var
nativeDataObject = _nativeDataObject.GetInterface();
105
using
var
nativeDataObject = _nativeDataObject.GetInterface();
System\Private\Windows\Ole\DragDropHelper.cs (8)
61
using
ComScope
<IDropTargetHelper> dropTargetHelper = new(null);
67
using
var
dataObjectScope = ComHelpers.GetComScope<IDataObject>(dataObject);
76
using
ComScope
<IDropTargetHelper> dropTargetHelper = new(null);
91
using
ComScope
<IDropTargetHelper> dropTargetHelper = new(null);
107
using
ComScope
<IDropTargetHelper> dropTargetHelper = new(null);
114
using
var
dataObjectScope = ComHelpers.GetComScope<IDataObject>(dataObject);
253
using
ComScope
<IDragSourceHelper2> dragSourceHelper = new(null);
289
using
var
dataObjectScope = ComHelpers.GetComScope<IDataObject>(dataObject);
Windows\Win32\PInvokeCore.RegisterDragDrop.cs (1)
14
using
var
dropTarget = ComHelpers.TryGetComScope<IDropTarget>(pDropTarget, out HRESULT hr);
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);
System.Private.Windows.Core.Tests (2)
System\Private\Windows\Ole\ClipboardCoreTests.cs (2)
70
result = ClipboardCore.TryGetData(out
var
data, out var original, retryTimes: 1, retryDelay: 0);
91
result = ClipboardCore.TryGetData(out
var
data, out var original, retryTimes: 1, retryDelay: 0);
System.Windows.Forms (68)
System\Windows\Forms\Accessibility\AccessibleObject.cs (4)
1286
using
var
selection = ComHelpers.GetComScope<IRawElementProviderSimple>(selected);
3237
using
var
provider = ComHelpers.GetComScope<IRawElementProviderSimple>(this);
3249
using
var
provider = ComHelpers.GetComScope<IRawElementProviderSimple>(this);
3269
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)
1884
using
var
persistStream = ComHelpers.GetComScope<IPersistStream>(_instance);
1889
using
var
persistStreamInit = ComHelpers.GetComScope<IPersistStreamInit>(_instance);
1902
using
var
persistStorage = ComHelpers.GetComScope<IPersistStorage>(_instance);
1909
using (
var
propertyBag = ComHelpers.GetComScope<IPropertyBag>(propBag))
1910
using (
var
persistPropBag = ComHelpers.GetComScope<IPersistPropertyBag>(_instance))
2034
using (
var
persistStream = ComHelpers.GetComScope<IPersistStream>(_instance))
2041
using (
var
persistStreamInit = ComHelpers.GetComScope<IPersistStreamInit>(_instance))
2048
using (
var
persistStorage = ComHelpers.GetComScope<IPersistStorage>(_instance))
2788
using
var
persistStream = ComHelpers.GetComScope<IPersistStream>(_instance);
2824
using
var
persistStorage = ComHelpers.GetComScope<IPersistStorage>(_instance);
2837
using
var
persistPropBag = ComHelpers.GetComScope<IPersistPropertyBag>(_instance);
3027
using
var
unknown = ComHelpers.GetComScope<IUnknown>(_instance);
3473
using
var
clientSite = ComHelpers.GetComScope<IOleClientSite>(_oleSite);
3482
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)
41
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)
4873
using
var
dropSource = ComHelpers.GetComScope<IDropSource>(
4875
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)
3110
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)
39
using
var
scope = _htmlDocument2.GetInterface<IUnknown>();
487
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\DropTarget.cs (1)
52
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 (6)
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\UI\Accessibility\AccessibleDispatchTests.cs (1)
17
using
var
dispatch = ComHelpers.GetComScope<IDispatch>(accessibleObject);
System.Windows.Forms.Tests (132)
SerializableTypesTests.cs (3)
47
using
var
resultPropBag = result.GetPropBag();
49
using
var
statePropBag = state.GetPropBag();
61
using
var
streamOut = result.GetStream();
System\Windows\Forms\Application.ComponentManagerTests.cs (11)
45
using
var
component = ComHelpers.GetComScope<IMsoComponent>(new MockWrapper(mock.Object));
59
using
var
component = ComHelpers.GetComScope<IMsoComponent>(new MockWrapper(mock.Object));
72
using
var
component = ComHelpers.GetComScope<IMsoComponent>(new MockWrapper(mock.Object));
92
using
var
component = ComHelpers.GetComScope<IMsoComponent>(new MockWrapper(mock.Object));
108
using
var
component = ComHelpers.GetComScope<IMsoComponent>(new MockWrapper(mock.Object));
122
using
var
component = ComHelpers.GetComScope<IMsoComponent>(new MockWrapper(mock.Object));
153
using
var
component = ComHelpers.GetComScope<IMsoComponent>(new MockWrapper(mock.Object));
184
using
var
component = ComHelpers.GetComScope<IMsoComponent>(new MockWrapper(new MockWrapper(mock.Object)));
215
using
var
component = ComHelpers.GetComScope<IMsoComponent>(new MockWrapper(mock.Object));
298
using
var
component1 = ComHelpers.GetComScope<IMsoComponent>(new MockWrapper(mock1.Object));
301
using
var
component2 = ComHelpers.GetComScope<IMsoComponent>(new MockWrapper(mock2.Object));
System\Windows\Forms\AxHostTests.cs (3)
1612
using
var
iPictureDisp = ComHelpers.GetComScope<IDispatch>(disp);
1637
using
var
iPictureDisp = ComHelpers.GetComScope<IDispatch>(disp);
3083
using
var
ocx = ComHelpers.GetComScope<IUnknown>(control.GetOcx());
System\Windows\Forms\ClipboardTests.cs (5)
561
using
var
dataScope = ComHelpers.GetComScope<Com.IDataObject>(data);
568
using
var
dataUnknown = dataScope.Query<Com.IUnknown>();
569
using
var
proxyUnknown = proxy.Query<Com.IUnknown>();
573
using
var
realDataPointer = proxy.Query<Com.IComCallableWrapper>();
574
using
var
realDataPointerUnknown = realDataPointer.Query<Com.IUnknown>();
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (1)
895
using
var
rawElementProvider = ComHelpers.GetComScope<IRawElementProviderSimple>(comboBox.AccessibilityObject);
System\Windows\Forms\ComponentModel\Com2Interop\COM2PictureConverterTests.cs (4)
70
using
var
unknown = ComHelpers.GetComScope<IUnknown>(nullIPicture);
80
using
var
unknown = ComHelpers.GetComScope<IUnknown>(iconIPicture);
101
using
var
unknown = ComHelpers.GetComScope<IUnknown>(bitmapIPicture);
123
using
var
unknown = ComHelpers.GetComScope<IUnknown>(new TestIPicture(1, PICTYPE.PICTYPE_METAFILE));
System\Windows\Forms\ComponentModel\Com2Interop\ComNativeDescriptorTests.cs (1)
191
using
var
accessible = ComHelpers.GetComScope<IAccessible>(value);
System\Windows\Forms\DataObjectComTests.cs (2)
29
var
inDataPtr = ComHelpers.GetComScope<Com.IDataObject>(inData);
47
var
inDataPtr = ComHelpers.GetComScope<Com.IDataObject>(inData);
System\Windows\Forms\DataObjectTests.cs (7)
2798
using
var
inDataPtr = ComHelpers.GetComScope<Com.IDataObject>(inData);
2829
using
var
inDataPtr = ComHelpers.GetComScope<Com.IDataObject>(inData);
2848
using
var
inDataPtr = ComHelpers.GetComScope<Com.IDataObject>(inData);
2865
using
var
inDataPtr = ComHelpers.GetComScope<Com.IDataObject>(inData);
2881
using
var
inDataPtr = ComHelpers.GetComScope<Com.IDataObject>(inData);
2896
using
var
comDataObject = ComHelpers.GetComScope<Com.IDataObject>(native);
2917
using
var
comDataObject = ComHelpers.GetComScope<Com.IDataObject>(native);
System\Windows\Forms\HtmlDocumentTests.cs (33)
96
using
var
iHTMLDocument2 = ComHelpers.GetComScope<IHTMLDocument2>(document.DomDocument);
121
using
var
iHTMLDocument2 = ComHelpers.GetComScope<IHTMLDocument2>(document.DomDocument);
226
using
var
iHtmlElement2 = ComHelpers.GetComScope<IHTMLElement2>(active.DomElement);
312
using
var
iHTMLDocument2 = ComHelpers.GetComScope<IHTMLDocument2>(document.DomDocument);
344
using
var
iHTMLDocument2 = ComHelpers.GetComScope<IHTMLDocument2>(document.DomDocument);
410
using
var
iHtmlDomNode = ComHelpers.GetComScope<IHTMLDOMNode>(element.Parent.DomElement);
411
using
var
domElement = ComHelpers.GetComScope<IHTMLDOMNode>(element.DomElement);
455
using
var
iHTMLDocument2 = ComHelpers.GetComScope<IHTMLDocument2>(document.DomDocument);
513
using
var
iHTMLDocument2 = ComHelpers.GetComScope<IHTMLDocument2>(document.DomDocument);
618
using
var
iHTMLDocument2 = ComHelpers.GetComScope<IHTMLDocument2>(document.DomDocument);
642
using
var
iHTMLDocument2 = ComHelpers.GetComScope<IHTMLDocument2>(document.DomDocument);
704
using
var
iHTMLDocument4 = ComHelpers.GetComScope<IHTMLDocument4>(document.DomDocument);
792
using
var
iHTMLDocument2 = ComHelpers.GetComScope<IHTMLDocument2>(document.DomDocument);
815
using
var
iHTMLDocument2 = ComHelpers.GetComScope<IHTMLDocument2>(document.DomDocument);
981
using
var
iHTMLDocument2 = ComHelpers.GetComScope<IHTMLDocument2>(document.DomDocument);
1005
using
var
iHTMLDocument2 = ComHelpers.GetComScope<IHTMLDocument2>(document.DomDocument);
1118
using
var
iHTMLDocument3 = ComHelpers.GetComScope<IHTMLDocument3>(document.DomDocument);
1143
using
var
iHTMLDocument3 = ComHelpers.GetComScope<IHTMLDocument3>(document.DomDocument);
1207
using
var
iHTMLDocument2 = ComHelpers.GetComScope<IHTMLDocument2>(document.DomDocument);
1231
using
var
iHTMLDocument2 = ComHelpers.GetComScope<IHTMLDocument2>(document.DomDocument);
1344
using
var
iHTMLDocument2 = ComHelpers.GetComScope<IHTMLDocument2>(document.DomDocument);
1368
using
var
iHTMLDocument2 = ComHelpers.GetComScope<IHTMLDocument2>(document.DomDocument);
1489
using
var
iHTMLDocument4 = ComHelpers.GetComScope<IHTMLDocument4>(document.DomDocument);
2017
using
var
iHTMLDocument4 = ComHelpers.GetComScope<IHTMLDocument4>(document.DomDocument);
2056
using
var
iHTMLDocument4 = ComHelpers.GetComScope<IHTMLDocument4>(document.DomDocument);
2094
using
var
iHTMLDocument4 = ComHelpers.GetComScope<IHTMLDocument4>(document.DomDocument);
2132
using
var
iHTMLDocument4 = ComHelpers.GetComScope<IHTMLDocument4>(document.DomDocument);
2170
using
var
iHTMLDocument4 = ComHelpers.GetComScope<IHTMLDocument4>(document.DomDocument);
2208
using
var
iHTMLDocument4 = ComHelpers.GetComScope<IHTMLDocument4>(document.DomDocument);
2246
using
var
iHTMLDocument4 = ComHelpers.GetComScope<IHTMLDocument4>(document.DomDocument);
2284
using
var
iHTMLDocument4 = ComHelpers.GetComScope<IHTMLDocument4>(document.DomDocument);
2322
using
var
iHTMLDocument4 = ComHelpers.GetComScope<IHTMLDocument4>(document.DomDocument);
2360
using
var
iHTMLDocument4 = ComHelpers.GetComScope<IHTMLDocument4>(document.DomDocument);
System\Windows\Forms\HtmlElementTests.cs (45)
226
using
var
iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement);
249
using
var
iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement);
353
using
var
iHTMLElement = ComHelpers.GetComScope<IHTMLElement>(element.DomElement);
378
using
var
iHTMLElement = ComHelpers.GetComScope<IHTMLElement>(element.DomElement);
443
using
var
iHTMLElement = ComHelpers.GetComScope<IHTMLElement>(element.DomElement);
469
using
var
iHTMLElement = ComHelpers.GetComScope<IHTMLElement>(element.DomElement);
564
using
var
iHTMLElement = ComHelpers.GetComScope<IHTMLElement>(element.DomElement);
590
using
var
iHTMLElement = ComHelpers.GetComScope<IHTMLElement>(element.DomElement);
682
using
var
iHTMLElement = ComHelpers.GetComScope<IHTMLElement>(element.DomElement);
708
using
var
iHTMLElement = ComHelpers.GetComScope<IHTMLElement>(element.DomElement);
865
using
var
iHTMLElement = ComHelpers.GetComScope<IHTMLElement>(element.DomElement);
896
using
var
iHTMLElement = ComHelpers.GetComScope<IHTMLElement>(element.DomElement);
976
using
var
iHTMLElement = ComHelpers.GetComScope<IHTMLElement>(element.DomElement);
1002
using
var
iHTMLElement = ComHelpers.GetComScope<IHTMLElement>(element.DomElement);
1105
using
var
iHTMLElement2 = ComHelpers.GetComScope<IHTMLElement2>(element.DomElement);
1129
using
var
iHTMLElement2 = ComHelpers.GetComScope<IHTMLElement2>(element.DomElement);
1195
using
var
iHTMLElement2 = ComHelpers.GetComScope<IHTMLElement2>(element.DomElement);
1219
using
var
iHTMLElement2 = ComHelpers.GetComScope<IHTMLElement2>(element.DomElement);
1287
using
var
iHTMLElement = ComHelpers.GetComScope<IHTMLElement>(element.DomElement);
1325
using
var
iHTMLElement = ComHelpers.GetComScope<IHTMLElement>(element.DomElement);
1367
using
var
iHTMLElement2 = ComHelpers.GetComScope<IHTMLElement2>(element.DomElement);
1391
using
var
iHTMLElement2 = ComHelpers.GetComScope<IHTMLElement2>(element.DomElement);
1599
using
var
iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement);
1641
using
var
iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement);
1682
using
var
iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement);
1870
using
var
iHTMLElement = ComHelpers.GetComScope<IHTMLElement>(element.DomElement);
2565
using
var
iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement);
2606
using
var
iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement);
2647
using
var
iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement);
2688
using
var
iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement);
2730
using
var
iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement);
2771
using
var
iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement);
2812
using
var
iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement);
2853
using
var
iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement);
2894
using
var
iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement);
2935
using
var
iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement);
2976
using
var
iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement);
3017
using
var
iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement);
3058
using
var
iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement);
3099
using
var
iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement);
3140
using
var
iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement);
3181
using
var
iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement);
3222
using
var
iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement);
3263
using
var
iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement);
3304
using
var
iHTMLElement3 = ComHelpers.GetComScope<IHTMLElement3>(element.DomElement);
System\Windows\Forms\HtmlToClrEventProxyTest.cs (3)
18
using
var
dispatchEx = ComHelpers.GetComScope<IDispatchEx>(proxy);
45
using
var
dispatchEx = ComHelpers.GetComScope<IDispatchEx>(proxy);
74
using
var
dispatch = ComHelpers.GetComScope<IDispatch>(proxy);
System\Windows\Forms\NativeToWinFormsAdapterTests.cs (11)
32
using
var
comDataObject = ComHelpers.GetComScope<Com.IDataObject>(native);
57
using
var
comDataObject = ComHelpers.GetComScope<Com.IDataObject>(native);
76
using
var
comDataObject = ComHelpers.GetComScope<Com.IDataObject>(native);
91
using
var
comDataObject = ComHelpers.GetComScope<Com.IDataObject>(native);
163
using
var
comDataObject = ComHelpers.GetComScope<Com.IDataObject>(native);
177
using
var
comDataObject = ComHelpers.GetComScope<Com.IDataObject>(native);
194
using
var
comDataObject = ComHelpers.GetComScope<Com.IDataObject>(native);
210
using
var
comDataObject = ComHelpers.GetComScope<Com.IDataObject>(native);
225
using
var
comDataObject = ComHelpers.GetComScope<Com.IDataObject>(native);
433
using
var
comDataObject = ComHelpers.GetComScope<Com.IDataObject>(native);
452
using
var
comDataObject = ComHelpers.GetComScope<Com.IDataObject>(native);
System\Windows\Forms\WebBrowserTests.cs (3)
302
using
var
webBrowser = ComHelpers.GetComScope<IWebBrowser2>(control.ActiveXInstance);
1735
using
var
webBrowser = ComHelpers.GetComScope<IWebBrowser2>(control.ActiveXInstance);
3618
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);