1 type derived from AgileComPointer
System.Windows.Forms (1)
System\Windows\Forms\ActiveX\AxHost.ConnectionPointCookie.cs (1)
95private sealed class ConnectionHandle : AgileComPointer<IConnectionPoint>
15 instantiations of AgileComPointer
System.Private.Windows.Core (2)
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (1)
26_nativeDataObject = new(dataObject, takeOwnership: true, trackDisposal: false);
System\Private\Windows\Ole\Composition.NativeToRuntimeAdapter.cs (1)
23_nativeDataObject = new(dataObject, takeOwnership: true, trackDisposal: false);
System.Private.Windows.Core.Tests (1)
System\Private\Windows\Ole\ClipboardCoreTests.cs (1)
55using AgileComPointer<IDataObject> agileComPointer = new(iDataObject.Value, takeOwnership: false);
System.Windows.Forms (9)
System\Windows\Forms\ActiveX\AxHost.AxContainer.cs (1)
645: new(pActiveObject, takeOwnership: false);
System\Windows\Forms\ActiveX\AxHost.State.cs (2)
184_lockBytes = new(lockBytes, takeOwnership: true); 185_storage = new(storage, takeOwnership: true);
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (4)
303_adviseHolder = new(holder, takeOwnership: true); 848_inPlaceFrame = pFrame is null ? null : new(pFrame, takeOwnership: true); 849_inPlaceUiWindow = pWindow is null ? null : new(pWindow, takeOwnership: true); 1643_clientSite = new(value, takeOwnership: true);
System\Windows\Forms\Controls\WebBrowser\HtmlHistory.cs (1)
16_htmlHistory = new(history, takeOwnership: true);
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (1)
1138_axIWebBrowser2 = new(ComHelpers.GetComPointer<IWebBrowser2>(nativeActiveXObject), takeOwnership: true);
System.Windows.Forms.Primitives.Tests (3)
Windows\Win32\AgileComPointerTests.cs (3)
17using (AgileComPointer<IStream> agileStream = new(stream, takeOwnership: true)) 67AgileComPointer<IStream> agile = new(streamPtr, takeOwnership: false); 81return new AgileComPointer<IStream>(stream.GetInterface(), takeOwnership: true);
82 references to AgileComPointer
System.Private.Windows.Core (7)
System\Private\Windows\Ole\Composition.NativeToManagedAdapter.cs (1)
21private readonly AgileComPointer<Com.IDataObject> _nativeDataObject;
System\Private\Windows\Ole\Composition.NativeToRuntimeAdapter.cs (1)
18private readonly AgileComPointer<Com.IDataObject> _nativeDataObject;
Windows\Win32\System\Com\AgileComPointer.cs (5)
34/// Creates an <see cref="AgileComPointer{TInterface}"/> for the given <paramref name="interface"/>. 96/// <see cref="AgileComPointer{TInterface}"/> was created from. 98public bool IsSameNativeObject(AgileComPointer<TInterface> other) 111/// <inheritdoc cref="IsSameNativeObject(AgileComPointer{TInterface})"/> 158/// this <see cref="AgileComPointer{TInterface}"/> was created from.
System.Private.Windows.Core.Tests (3)
System\Private\Windows\Ole\ClipboardCoreTests.cs (1)
55using AgileComPointer<IDataObject> agileComPointer = new(iDataObject.Value, takeOwnership: false);
System\Private\Windows\Ole\DataObjectProxy.cs (2)
18private readonly AgileComPointer<IDataObject> _agileOriginal; 20private readonly AgileComPointer<IDataObject> _agileProxy;
System.Windows.Forms (64)
System\Windows\Forms\Accessibility\AccessibleObject.cs (5)
105internal AgileComPointer<UIA.IAccessible>? SystemIAccessible { get; private set; } 112private AgileComPointer<IEnumVARIANT>? _systemIEnumVariant; 116private AgileComPointer<IOleWindow>? _systemIOleWindow; 131private AccessibleObject(AgileComPointer<UIA.IAccessible> accessible) 2886AgileComPointer<UIA.IAccessible> agileAccessible =
System\Windows\Forms\Accessibility\AccessibleObjectExtensions.cs (26)
12public static ComScope<IAccessible> TryGetIAccessible(this AgileComPointer<IAccessible>? agile, out HRESULT result) 23public static Rectangle TryGetLocation(this AgileComPointer<IAccessible>? agile, int child) 26public static Rectangle TryGetLocation(this AgileComPointer<IAccessible>? agile, VARIANT child) 48public static BSTR TryGetDefaultAction(this AgileComPointer<IAccessible>? agile, int child) 51public static BSTR TryGetDefaultAction(this AgileComPointer<IAccessible>? agile, VARIANT child) 68public static void TryDoDefaultAction(this AgileComPointer<IAccessible>? agile, int child) 71public static void TryDoDefaultAction(this AgileComPointer<IAccessible>? agile, VARIANT child) 82public static BSTR TryGetDescription(this AgileComPointer<IAccessible>? agile, int child) => 85public static BSTR TryGetDescription(this AgileComPointer<IAccessible>? agile, VARIANT child) 102public static BSTR TryGetHelp(this AgileComPointer<IAccessible>? agile, int child) 105public static BSTR TryGetHelp(this AgileComPointer<IAccessible>? agile, VARIANT child) 122public static BSTR TryGetKeyboardShortcut(this AgileComPointer<IAccessible>? agile, int child) 125public static BSTR TryGetKeyboardShortcut(this AgileComPointer<IAccessible>? agile, VARIANT child) 142public static BSTR TryGetName(this AgileComPointer<IAccessible>? agile, int child) 145public static BSTR TryGetName(this AgileComPointer<IAccessible>? agile, VARIANT child) 160public static void TrySetName(this AgileComPointer<IAccessible>? agile, VARIANT child, BSTR name) 181public static AccessibleRole TryGetRole(this AgileComPointer<IAccessible>? agile, int child) 184public static AccessibleRole TryGetRole(this AgileComPointer<IAccessible>? agile, VARIANT child) 200public static AccessibleStates TryGetState(this AgileComPointer<IAccessible>? agile, int child) 203public static AccessibleStates TryGetState(this AgileComPointer<IAccessible>? agile, VARIANT child) 221public static BSTR TryGetValue(this AgileComPointer<IAccessible>? agile, VARIANT child) 238public static void TrySetValue(this AgileComPointer<IAccessible>? agile, VARIANT child, BSTR value) 258public static (int topic, BSTR helpFile) TryGetHelpTopic(this AgileComPointer<IAccessible>? agile, VARIANT child) 275public static void TrySelect(this AgileComPointer<IAccessible>? agile, AccessibleSelection flags, int child) 278public static void TrySelect(this AgileComPointer<IAccessible>? agile, AccessibleSelection flags, VARIANT child) 289public static int TryGetChildCount(this AgileComPointer<IAccessible>? agile)
System\Windows\Forms\ActiveX\AxHost.AxContainer.cs (1)
642var existing = activeHost._iOleInPlaceActiveObjectExternal;
System\Windows\Forms\ActiveX\AxHost.cs (1)
135private AgileComPointer<IOleInPlaceActiveObject>? _iOleInPlaceActiveObjectExternal;
System\Windows\Forms\ActiveX\AxHost.State.cs (2)
30private AgileComPointer<IStorage>? _storage; 32private AgileComPointer<ILockBytes>? _lockBytes;
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (4)
128private AgileComPointer<IOleClientSite>? _clientSite; 129private AgileComPointer<IOleInPlaceUIWindow>? _inPlaceUiWindow; 130private AgileComPointer<IOleInPlaceFrame>? _inPlaceFrame; 131private AgileComPointer<IOleAdviseHolder>? _adviseHolder;
System\Windows\Forms\ActiveX\Control.AxSourcingSite.cs (2)
14private readonly AgileComPointer<IOleClientSite> _clientSite; 18internal AxSourcingSite(IComponent component, AgileComPointer<IOleClientSite> clientSite, string? name)
System\Windows\Forms\Application.ComponentManager.cs (6)
27public AgileComPointer<IMsoComponent> component; 33private AgileComPointer<IMsoComponent>? _activeComponent; 34private AgileComPointer<IMsoComponent>? _trackingComponent; 218AgileComPointer<IMsoComponent>? prevActive = _activeComponent; 223AgileComPointer<IMsoComponent>? requestingComponent = entry.component; 358AgileComPointer<IMsoComponent>? component = dwgac switch
System\Windows\Forms\Controls\TabControl\TabPage.TabAccessibleObject.cs (1)
78private AgileComPointer<IAccessible>? SystemIAccessibleInternal
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.cs (2)
25private readonly AgileComPointer<IHTMLDocument2> _htmlDocument2; 45internal AgileComPointer<IHTMLDocument2> NativeHtmlDocument2 => _htmlDocument2;
System\Windows\Forms\Controls\WebBrowser\HtmlDocument.HtmlDocumentShim.cs (1)
25private readonly AgileComPointer<IHTMLWindow2>? _associatedWindow;
System\Windows\Forms\Controls\WebBrowser\HtmlElement.cs (2)
34private readonly AgileComPointer<IHTMLElement> _htmlElement; 267internal AgileComPointer<IHTMLElement> NativeHtmlElement => _htmlElement;
System\Windows\Forms\Controls\WebBrowser\HtmlElement.HtmlElementShim.cs (1)
46private readonly AgileComPointer<IHTMLWindow2>? _associatedWindow;
System\Windows\Forms\Controls\WebBrowser\HtmlElementCollection.cs (2)
13private readonly AgileComPointer<IHTMLElementCollection>? _htmlElementCollection; 44private AgileComPointer<IHTMLElementCollection>? NativeHtmlElementCollection => _htmlElementCollection;
System\Windows\Forms\Controls\WebBrowser\HtmlHistory.cs (2)
11private AgileComPointer<IOmHistory> _htmlHistory; 20private AgileComPointer<IOmHistory> NativeOmHistory
System\Windows\Forms\Controls\WebBrowser\HtmlWindow.cs (2)
22private readonly AgileComPointer<IHTMLWindow2> _htmlWindow2; 39internal AgileComPointer<IHTMLWindow2> NativeHtmlWindow => _htmlWindow2;
System\Windows\Forms\Controls\WebBrowser\HtmlWindowCollection.cs (2)
14private readonly AgileComPointer<IHTMLFramesCollection2> _htmlFramesCollection2; 29private AgileComPointer<IHTMLFramesCollection2> NativeHTMLFramesCollection2 => _htmlFramesCollection2;
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (2)
29private AgileComPointer<IWebBrowser2>? _axIWebBrowser2; 1390private AgileComPointer<IWebBrowser2> AxIWebBrowser2
System.Windows.Forms.Primitives (1)
Microsoft\Office\IMsoComponentManager.NativeAdapter.cs (1)
12private AgileComPointer<IMsoComponentManager>? _manager;
System.Windows.Forms.Primitives.Tests (7)
Windows\Win32\AgileComPointerTests.cs (7)
17using (AgileComPointer<IStream> agileStream = new(stream, takeOwnership: true)) 31using AgileComPointer<IStream> agileStream = CreateMyStreamAgileComPointer(out nint originalPtr); 34using AgileComPointer<IStream> proxyAgileStream = await GetProxyAgileComPointer(agileStream); 62unsafe AgileComPointer<IStream> CreateMyStreamAgileComPointer(out nint originalPtr) 67AgileComPointer<IStream> agile = new(streamPtr, takeOwnership: false); 75unsafe Task<AgileComPointer<IStream>> GetProxyAgileComPointer(AgileComPointer<IStream> stream)