84 references to IUnknown
System.Private.Windows.Core (59)
Windows\Win32\System\Com\AgileComPointer.cs (6)
48uint count = ((IUnknown*)@interface)->Release(); 66using var currentUnknown = GetInterface<IUnknown>(); 67using var otherUnknown = other.GetInterface<IUnknown>(); 74using var currentUnknown = GetInterface<IUnknown>(); 75using ComScope<IUnknown> otherUnknown = ComScope<IUnknown>.QueryFrom(other);
Windows\Win32\System\Com\ComHelpers.cs (29)
88IUnknown* ccw = null; 92ccw = (IUnknown*)WinFormsComWrappers.Instance.GetOrCreateComInterfaceForObject(@object, CreateComInterfaceFlags.None); 97ccw = (IUnknown*)unknown; 105ccw = (IUnknown*)Marshal.GetIUnknownForObject(@object); 119if (typeof(T) == typeof(IUnknown)) 136IUnknown* unknown, 156/// <inheritdoc cref="TryGetObjectForIUnknown{TObject}(IUnknown*, bool, out TObject)"/> 163/// <inheritdoc cref="TryGetObjectForIUnknown{TObject}(IUnknown*, bool, out TObject)"/> 176IUnknown* unknown = (IUnknown*)comPointer; 177if (typeof(TInterface) == typeof(IUnknown)) 182HRESULT hr = unknown->QueryInterface(IID.Get<IUnknown>(), (void**)&unknown); 193/// <inheritdoc cref="TryGetObjectForIUnknown{TObject}(IUnknown*, bool, out TObject)"/> 195IUnknown* unknown, 206IUnknown* unknown, 248using ComScope<IUnknown> unknown = new(null); 249((IUnknown*)comPointer)->QueryInterface(IID.Get<IUnknown>(), unknown).ThrowOnFailure(); 257using ComScope<IUnknown> ccw = new((IUnknown*)(void*)Marshal.GetIUnknownForObject(@object)); 261/// <inheritdoc cref="GetObjectForIUnknown(IUnknown*)"/> 270IUnknown* unknown = (IUnknown*)comPointer; 272if (typeof(TInterface) == typeof(IUnknown)) 277unknown->QueryInterface(IID.Get<IUnknown>(), (void**)&unknown).ThrowOnFailure(); 281/// <inheritdoc cref="GetObjectForIUnknown(IUnknown*)"/> 289internal static object GetObjectForIUnknown(IUnknown* unknown) 314/// <see cref="IUnknown"/> vtable population hook for CsWin32's generated <see cref="IVTable"/> implementation. 316static partial void PopulateIUnknownImpl<TComInterface>(IUnknown.Vtbl* vtable)
Windows\Win32\System\Com\ComScope.cs (11)
11/// to ensure <see cref="IUnknown.Release"/> is called when going out of scope with the using. 28/// <see cref="IUnknown.Interface"/> or some other interface tag to enforce that this is being used around 36public IUnknown* AsUnknown => (IUnknown*)_value; 63hr = ((IUnknown*)Value)->QueryInterface(IID.Get<TTo>(), scope); 73((IUnknown*)Value)->QueryInterface(IID.Get<TTo>(), scope).ThrowOnFailure(); 83hr = from is null ? HRESULT.E_POINTER : ((IUnknown*)from)->QueryInterface(IID.Get<T>(), scope); 98((IUnknown*)from)->QueryInterface(IID.Get<T>(), scope).ThrowOnFailure(); 113IUnknown* unknown; 127IUnknown* unknown = (IUnknown*)_value;
Windows\Win32\System\Com\GlobalInterfaceTable.cs (1)
41(IUnknown*)@interface,
Windows\Win32\System\Com\GlobalInterfaceTable.UnknownStrategy.cs (1)
21_cookie = RegisterInterface((IUnknown*)unknown);
Windows\Win32\System\Com\WinFormsComWrappers.cs (4)
17internal static void PopulateIUnknownVTable(IUnknown.Vtbl* unknown) 20unknown->QueryInterface_1 = (delegate* unmanaged[Stdcall]<IUnknown*, Guid*, void**, HRESULT>)fpQueryInterface; 21unknown->AddRef_2 = (delegate* unmanaged[Stdcall]<IUnknown*, uint>)fpAddRef; 22unknown->Release_3 = (delegate* unmanaged[Stdcall]<IUnknown*, uint>)fpRelease;
Windows\Win32\System\Variant\VARIANT.cs (6)
165IUnknown* pInterface = *(IUnknown**)data; 394result[i] = data[i] == IntPtr.Zero ? null : ComHelpers.GetObjectForIUnknown((IUnknown*)data[i]); 604SetValue(array, ComHelpers.GetObjectForIUnknown((IUnknown*)data), indices, lowerBounds); 950public static explicit operator VARIANT(IUnknown* value) 958public static explicit operator IUnknown*(VARIANT value)
Windows\Win32\UI\Controls\Dialogs\PRINTDLGEXW.cs (1)
295public unsafe IUnknown* lpCallback;
System.Windows.Forms.Primitives (25)
Microsoft\Office\IMsoComponent.cs (3)
124/// <inheritdoc cref="IUnknown.QueryInterface(Guid*, void**)"/> 131/// <inheritdoc cref="IUnknown.AddRef"/> 138/// <inheritdoc cref="IUnknown.Release"/>
Microsoft\Office\IMsoComponentManager.cs (5)
36/// <inheritdoc cref="IUnknown.QueryInterface(Guid*, void**)"/> 43/// <inheritdoc cref="IUnknown.AddRef"/> 50/// <inheritdoc cref="IUnknown.Release"/> 163/// <inheritdoc cref="Interface.FCreateSubComponentManager(IUnknown*, IUnknown*, Guid*, void**)"/>
Microsoft\VisualStudio\Shell\ICategorizeProperties.cs (3)
34/// <inheritdoc cref="IUnknown.QueryInterface(Guid*, void**)"/> 41/// <inheritdoc cref="IUnknown.AddRef"/> 48/// <inheritdoc cref="IUnknown.Release"/>
Microsoft\VisualStudio\Shell\IProvidePropertyBuilder.cs (3)
34/// <inheritdoc cref="IUnknown.QueryInterface(Guid*, void**)"/> 41/// <inheritdoc cref="IUnknown.AddRef"/> 48/// <inheritdoc cref="IUnknown.Release"/>
Microsoft\VisualStudio\Shell\IVSMDPerPropertyBrowsing.cs (3)
35/// <inheritdoc cref="IUnknown.QueryInterface(Guid*, void**)"/> 42/// <inheritdoc cref="IUnknown.AddRef"/> 49/// <inheritdoc cref="IUnknown.Release"/>
Microsoft\VisualStudio\Shell\IVsPerPropertyBrowsing.cs (3)
34/// <inheritdoc cref="IUnknown.QueryInterface(Guid*, void**)"/> 41/// <inheritdoc cref="IUnknown.AddRef"/> 48/// <inheritdoc cref="IUnknown.Release"/>
System\Windows\Forms\AccessibilityExtensions.cs (1)
11/// <inheritdoc cref="PInvoke.LresultFromObject(Guid*, WPARAM, IUnknown*)"/>
System\Windows\Forms\IExtender.cs (3)
31/// <inheritdoc cref="IUnknown.QueryInterface(Guid*, void**)"/> 38/// <inheritdoc cref="IUnknown.AddRef()"/> 45/// <inheritdoc cref="IUnknown.Release()"/>
Windows\Win32\System\Com\UnknownDispatch.cs (1)
7/// Base <see cref="IDispatch"/> class for <see cref="IUnknown"/>.