89 references to new
System.Private.Windows.Core (20)
System\Private\Windows\Ole\ClipboardCore.cs (1)
182proxyDataObject = new(null);
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (1)
677using ComScope<Com.IEnumFORMATETC> enumFORMATETC = new(null);
System\Private\Windows\Ole\Composition.NativeToRuntimeAdapter.cs (2)
46using ComScope<Com.IEnumSTATDATA> nativeStatData = new(null); 55using ComScope<Com.IEnumFORMATETC> nativeFormat = new(null);
System\Private\Windows\Ole\DragDropHelper.cs (5)
69using ComScope<IDropTargetHelper> dropTargetHelper = new(null); 84using ComScope<IDropTargetHelper> dropTargetHelper = new(null); 99using ComScope<IDropTargetHelper> dropTargetHelper = new(null); 115using ComScope<IDropTargetHelper> dropTargetHelper = new(null); 261using ComScope<IDragSourceHelper2> dragSourceHelper = new(null);
Windows\Win32\System\Com\ComHelpers.cs (6)
29new(GetComPointer<T>(@object)); 41new(TryGetComPointer<T>(@object, out hr)); 258using ComScope<ComUnknown> unknown = new(null); 267using ComScope<ComUnknown> ccw = new((ComUnknown*)(void*)Marshal.GetIUnknownForObject(@object)); 355using ComScope<ITypeLib> typelib = new(null); 359ComScope<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)
54ComScope<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)
665using ComScope<IOleClientSite> clientSite = new(null);
System\Windows\Forms\ActiveX\AxHost.cs (5)
2217using ComScope<IClassFactory2> factory = new(null); 2256using ComScope<IUnknown> unknown = new(null); 2272using ComScope<IClassFactory2> factory = new(null); 2283using ComScope<IUnknown> unknown = new(null); 3759using 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)
1646using ComScope<IRichEditOle> richEdit = new(null); 1670using ComScope<ITextRange> windowTextRange = new(null); 1687using 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.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));