165 references to new
System.Private.Windows.Core (21)
System\Private\Windows\Ole\ClipboardCore.cs (1)
142proxyDataObject = new(null);
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (2)
374using ComScope<Com.IStream> pStream = new((Com.IStream*)medium.hGlobal); 549using ComScope<Com.IEnumFORMATETC> enumFORMATETC = new(null);
System\Private\Windows\Ole\Composition.NativeToRuntimeAdapter.cs (2)
48using ComScope<Com.IEnumSTATDATA> nativeStatData = new(null); 57using ComScope<Com.IEnumFORMATETC> nativeFormat = new(null);
System\Private\Windows\Ole\DragDropHelper.cs (5)
61using ComScope<IDropTargetHelper> dropTargetHelper = new(null); 76using ComScope<IDropTargetHelper> dropTargetHelper = new(null); 91using ComScope<IDropTargetHelper> dropTargetHelper = new(null); 107using ComScope<IDropTargetHelper> dropTargetHelper = new(null); 253using ComScope<IDragSourceHelper2> dragSourceHelper = new(null);
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);
System.Private.Windows.GdiPlus (5)
System\Drawing\IIconExtensions.cs (1)
43ComScope<IPicture> picture = new(null);
Windows\Win32\Graphics\GdiPlus\GpImageExtensions.cs (2)
54ComScope<IPictureDisp> picture = new(null); 69ComScope<IPicture> picture = new(null);
Windows\Win32\System\Ole\IPicture.cs (2)
22ComScope<IPicture> picture = new(null); 37ComScope<IPicture> picture = new(null);
System.Windows.Forms (59)
System\Windows\Forms\Accessibility\AccessibleObject.cs (2)
1834ComScope<IDispatch> child = new(null); 2241ComScope<IDispatch> dispatch = new(null);
System\Windows\Forms\ActiveX\AxHost.AxContainer.cs (1)
668using ComScope<IOleClientSite> clientSite = new(null);
System\Windows\Forms\ActiveX\AxHost.cs (5)
2220using ComScope<IClassFactory2> factory = new(null); 2259using ComScope<IUnknown> unknown = new(null); 2275using ComScope<IClassFactory2> factory = new(null); 2286using ComScope<IUnknown> unknown = new(null); 3762using ComScope<IDispatch> dispatch = new((IDispatch*)Marshal.GetIDispatchForObject(oleFont));
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (3)
999using ComScope<IStream> stream = new(null); 1421using ComScope<IConnectionPoint> connectionPoint = new(null); 1460using ComScope<IStream> stream = new(null);
System\Windows\Forms\ActiveX\Control.AxSourcingSite.cs (1)
40using ComScope<IOleContainer> container = new(null);
System\Windows\Forms\Application.ComponentThreadContext.cs (3)
90using ComScope<ComIMessageFilter> messageFilter = new(null); 110using ComScope<IUnknown> serviceHandle = new(null); 243using ComScope<IMsoComponent> component = new(null);
System\Windows\Forms\ComponentModel\COM2Interop\COM2PictureConverter.cs (1)
120using ComScope<IPicture> picture = new(null);
System\Windows\Forms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (1)
878using ComScope<IErrorInfo> errorInfo = new(null);
System\Windows\Forms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (1)
350using ComScope<ITypeInfo> refTypeInfo = new(null);
System\Windows\Forms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (1)
83using ComScope<ITypeInfo> typeInfo = new(Com2TypeInfoProcessor.FindTypeInfo(component, preferIProvideClassInfo: true));
System\Windows\Forms\Controls\RichTextBox\RichTextBox.OleCallback.cs (1)
38using ComScope<ILockBytes> pLockBytes = new(null);
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (3)
1652using ComScope<IRichEditOle> richEdit = new(null); 1676using ComScope<ITextRange> windowTextRange = new(null); 1693using ComScope<ITextRange> selectionTextRange = new(null);
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.cs (3)
144using ComScope<IHTMLLocation> htmlLocation = new(null); 480using ComScope<IDispatch> dispatch = new(null); 505using ComScope<IDispatch> scriptDispatch = new(null);
System\Windows\Forms\Controls\WebBrowser\HtmlElement.cs (7)
64using ComScope<IDispatch> dispatch = new(null); 78using ComScope<IDispatch> dispatch = new(null); 121using ComScope<IDispatch> dispatch = new(null); 173using ComScope<IHTMLDOMNode> child = new(null); 289using ComScope<IHTMLDOMNode> sibling = new(null); 459using ComScope<IHTMLStyle> style = new(null); 468using ComScope<IHTMLStyle> style = new(null);
System\Windows\Forms\Controls\WebBrowser\HtmlElementCollection.cs (2)
57using ComScope<IDispatch> dispatch = new(null); 77using ComScope<IDispatch> dispatch = new(null);
System\Windows\Forms\Controls\WebBrowser\HtmlWindow.cs (6)
74using ComScope<IHTMLDocument2> htmlDoc2 = new(null); 148using ComScope<IDispatch> dispatch = new(variantDispatch.data.pdispVal); 188using ComScope<IHTMLDocument2> htmlDoc2 = new(null); 190using ComScope<IHTMLElement> bodyElement = new(null); 227using ComScope<IHTMLLocation> location = new(null); 246using ComScope<IHTMLFrameBase> htmlFrameBase = new(null);
System\Windows\Forms\Controls\WebBrowser\HtmlWindowCollection.cs (2)
42using ComScope<IDispatch> dispatch = new(variantDispatch.data.pdispVal); 61using ComScope<IDispatch> dispatch = new(variantDispatch.data.pdispVal);
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (2)
220using ComScope<IDispatch> dispatch = new(null); 228using ComScope<IHTMLLocation> htmlLocation = new(null);
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.Vista.cs (1)
64using ComScope<IShellItem> initialDirectory = new(PInvoke.SHCreateShellItem(InitialDirectory));
System\Windows\Forms\Dialogs\CommonDialogs\FolderBrowserDialog.cs (5)
345using ComScope<IFileDialogCustomize> customize = new(null); 357using ComScope<IShellItem> initialDirectory = new(PInvoke.SHCreateShellItem(_initialDirectory)); 406using ComScope<IShellItemArray> itemArray = new(null); 412using ComScope<IShellItem> item = new(null); 426using ComScope<IShellItem> item = new(null);
System\Windows\Forms\Dialogs\CommonDialogs\OpenFileDialog.cs (4)
139using ComScope<IShellItem> item = new(null); 146using ComScope<IShellItemArray> items = new(null); 158using ComScope<IShellItem> item = new(null); 175return new(fileDialog);
System\Windows\Forms\Dialogs\CommonDialogs\SaveFileDialog.cs (2)
159using ComScope<IShellItem> item = new(null); 173return new(fileDialog);
System\Windows\Forms\Input\Cursor.cs (2)
405using ComScope<IPicture> picture = new(null); 408using ComScope<IPersistStream> persist = new(null);
System.Windows.Forms.Design (1)
System\ComponentModel\Design\MultilineStringEditor.OleCallback.cs (1)
30using ComScope<ILockBytes> pLockBytes = new(null);
System.Windows.Forms.Interop.Tests (1)
AccessibleObjectTests.cs (1)
748using ComScope<ITypeInfo> typeInfo = new(null);
System.Windows.Forms.Primitives (4)
System\Windows\Forms\FileDialogCustomPlacesCollection.cs (1)
15using ComScope<IShellItem> shellItem = new(customPlace.GetNativePath());
Windows\Win32\System\Com\ComSafeArrayScope.cs (1)
54using ComScope<IUnknown> unknown = new((IUnknown*)_value[i]);
Windows\Win32\System\Com\StandardDispatch.cs (2)
130using ComScope<T> @interface = new(ComHelpers.GetComPointer<T>(_instance)); 187using ComScope<T> @interface = new(ComHelpers.GetComPointer<T>(_instance));
System.Windows.Forms.Primitives.Tests (35)
Interop\Oleaut32\ITypeInfoTests.cs (19)
21using ComScope<ITypeInfo> typeInfo = new(null); 35using ComScope<ITypeInfo> typeInfo = new(null); 49using ComScope<ITypeInfo> typeInfo = new(null); 52using ComScope<ITypeLib> typeLib = new(null); 65using ComScope<ITypeInfo> typeInfo = new(null); 85using ComScope<ITypeInfo> typeInfo = new(null); 105using ComScope<ITypeInfo> typeInfo = new(null); 139using ComScope<ITypeInfo> typeInfo = new(null); 163using ComScope<ITypeInfo> typeInfo = new(null); 177using ComScope<ITypeInfo> typeInfo = new(null); 191using ComScope<ITypeInfo> typeInfo = new(null); 213using ComScope<ITypeInfo> typeInfo = new(null); 220using ComScope<ITypeInfo> refTypeInfo = new(null); 230using ComScope<ITypeInfo> typeInfo = new(null); 244using ComScope<ITypeInfo> typeInfo = new(null); 283using ComScope<ITypeInfo> typeInfo = new(null); 286using ComScope<ITypeComp> typeComp = new(null); 296using ComScope<ITypeInfo> typeInfo = new(null); 325using ComScope<ITypeInfo> typeInfo = new(null);
Interop\Oleaut32\SAFEARRAYTests.cs (1)
94using ComScope<IRecordInfo> recordInfo = new(new CustomRecordInfo().GetComInterface());
Interop\Oleaut32\VARIANTTests.cs (6)
938using ComScope<IUnknown> unknown = new((IUnknown*)(void*)Marshal.GetIUnknownForObject(o)); 970using ComScope<IUnknown> unknown = new((IUnknown*)(void*)Marshal.GetIUnknownForObject(o)); 5616using ComScope<IRecordInfo> pRecordInfo = new(recordInfo.GetComInterface()); 5631using ComScope<IRecordInfo> pRecordInfo = new(recordInfo.GetComInterface()); 5656using ComScope<IRecordInfo> pRecordInfo = new(record.GetComInterface()); 5682using ComScope<IRecordInfo> pRecordInfo = new(record.GetComInterface());
System\Windows\Forms\Automation\UiaTextRangeTests.cs (6)
31using ComScope<IRawElementProviderSimple> elementProviderScope = new(null); 229using ComScope<ITextRangeProvider> rangeScope = new(null); 405using ComScope<ITextRangeProvider> actual = new(null); 432using ComScope<ITextRangeProvider> actual = new(null); 453using ComScope<ITextRangeProvider> actual = new(null); 844using ComScope<IRawElementProviderSimple> actual = new(null);
Windows\Win32\AgileComPointerTests.cs (1)
45using ComScope<IUnknown> originalUnknownPtr = new(null);
Windows\Win32\System\Com\ComScopeTests.cs (1)
14ComScope<ITestObject> scope = new(ComHelpers.GetComPointer<ITestObject>(new TestObject()));
Windows\Win32\System\Com\IDispatchTests.cs (1)
44using ComScope<ITypeInfo> typeInfo = new(null);
System.Windows.Forms.Tests (35)
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (3)
2745using ComScope<UIA.IAccessible> accessible = new(null); 2747using ComScope<UIA.IAccessible> expected = new(ComHelpers.TryGetComPointer<UIA.IAccessible>(accessibleObject)); 2759using ComScope<UIA.IAccessible> accessible = new(null);
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (1)
1465using ComScope<IRawElementProviderFragmentRoot> actual = new(null);
System\Windows\Forms\AccessibleObjects\ListViewLabelEditAccessibleObjectTests.cs (1)
106using ComScope<IRawElementProviderSimple> elementProvider = new(accessibilityObject.HostRawElementProvider);
System\Windows\Forms\AccessibleObjects\TreeViewLabelEditAccessibleObjectTests.cs (1)
105using ComScope<IRawElementProviderSimple> provider = new(accessibilityObject.HostRawElementProvider);
System\Windows\Forms\Application.ComponentManagerTests.cs (1)
336using ComScope<IMsoComponent> component = new(null);
System\Windows\Forms\ClipboardTests.cs (1)
468using ComScope<Com.IDataObject> proxy = new(null);
System\Windows\Forms\ComboBox.ComboBoxUiaTextProviderTests.cs (9)
163using ComScope<ITextRangeProvider> range = new(provider.DocumentRange); 164using ComScope<IRawElementProviderSimple> elementProvider = new(range.Value->GetEnclosingElement()); 211ComScope<ITextRangeProvider> uiaTextRange = new(null); 230using ComScope<ITextRangeProvider> uiaTextRange = new(null); 894using ComScope<ITextRangeProvider> range = new(null); 918using ComScope<ITextRangeProvider> range = new(null); 935using ComScope<ITextRangeProvider> range = new(null); 960using ComScope<ITextRangeProvider> range = new(selection[0]); 1023using ComScope<ITextRangeProvider> range = new(selection[0]);
System\Windows\Forms\ComponentModel\Com2Interop\COM2FontConverterTests.cs (2)
36using ComScope<IFont> iFont = new(null); 68using ComScope<IFont> iFont = new(null);
System\Windows\Forms\ComponentModel\Com2Interop\ComNativeDescriptorTests.cs (2)
113ComScope<IUnknown> unknown = new(null); 162using ComScope<IAccessible> accessible = new(null);
System\Windows\Forms\Control.ActiveXFontMarshallerTests.cs (1)
23using ComScope<IFont> iFont = new((IFont*)native);
System\Windows\Forms\HtmlDocumentTests.cs (1)
412using ComScope<IHTMLDOMNode> node = new(null);
System\Windows\Forms\HtmlElementTests.cs (2)
1288using ComScope<IHTMLStyle> htmlStyle = new(null); 1326using ComScope<IHTMLStyle> htmlStyle = new(null);
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyGridView.GridViewTextBox.GridViewTextBoxAccessibleObjectTests.cs (1)
81using ComScope<IRawElementProviderFragment> previousAccessibleObject = new(null);
System\Windows\Forms\TextBoxBase.TextBoxBaseUiaTextProviderTests.cs (9)
119using ComScope<ITextRangeProvider> documentRange = new(provider.DocumentRange); 140using ComScope<ITextRangeProvider> uiaTextRange = new(null); 152using ComScope<ITextRangeProvider> uiaTextRange = new(null); 759using ComScope<ITextRangeProvider> range = new(null); 774using ComScope<ITextRangeProvider> range = new(null); 795using ComScope<ITextRangeProvider> range = new(null); 809using ComScope<ITextRangeProvider> range = new(null); 830using ComScope<ITextRangeProvider> range = new(selection[0]); 872using ComScope<ITextRangeProvider> range = new(selection[0]);
System.Windows.Forms.UI.IntegrationTests (4)
DragDropTests.cs (2)
135using ComScope<IUIAutomation> uiAutomation = new(null); 136using ComScope<IUIAutomationElement> uiAutomationElement = new(null);
RichTextBoxTests.cs (2)
213using ComScope<IRichEditOle> richEdit = new(null); 221using ComScope<ITextRange> range = new(null);