4 types derived from ComWrappers
PresentationFramework (1)
MS\Internal\WindowsRuntime\Generated\WinRT\ComWrappersSupport.net5.cs (1)
55internal class WpfWinRTComWrappers : ComWrappers
System.Private.Windows.Core (1)
Windows\Win32\System\Com\WinFormsComWrappers.cs (1)
11internal unsafe partial class WinFormsComWrappers : ComWrappers
System.Runtime.InteropServices (1)
System\Runtime\InteropServices\Marshalling\StrategyBasedComWrappers.cs (1)
15public class StrategyBasedComWrappers : ComWrappers
System.Windows.Forms.Tests (1)
System\Windows\Forms\ComponentModel\Com2Interop\ComNativeDescriptorTests.cs (1)
324private class UnknownComWrappers : ComWrappers
50 references to ComWrappers
PresentationFramework (3)
MS\Internal\WindowsRuntime\Generated\WinRT\ComWrappersSupport.cs (1)
9using ComInterfaceEntry = System.Runtime.InteropServices.ComWrappers.ComInterfaceEntry;
MS\Internal\WindowsRuntime\Generated\WinRT\ComWrappersSupport.net5.cs (2)
8using static System.Runtime.InteropServices.ComWrappers; 16private static ComWrappers ComWrappers { get; } = new WpfWinRTComWrappers();
System.ComponentModel.TypeConverter (1)
System\ComponentModel\TypeDescriptor.cs (1)
1753&& ComWrappers.TryGetComInstance(instance, out nint unknown))
System.Private.CoreLib (21)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComWrappers.cs (2)
10/// Enumeration of flags for <see cref="ComWrappers.GetOrCreateComInterfaceForObject(object, CreateComInterfaceFlags)"/>. 37/// Enumeration of flags for <see cref="ComWrappers.GetOrCreateObjectForComInstance(IntPtr, CreateObjectFlags)"/>.
src\System\Runtime\InteropServices\ComWrappers.cs (19)
29/// Given a managed object, determine if it is a <see cref="ComWrappers" />-created 58/// Given a COM object, determine if it is a <see cref="ComWrappers" />-created 109private static ComWrappers? s_globalInstanceForTrackerSupport; 114private static ComWrappers? s_globalInstanceForMarshalling; 127/// this <see cref="ComWrappers" /> instance, the previously created COM interface will be returned. 142/// <param name="impl">The <see cref="ComWrappers" /> implementation to use when creating the COM representation.</param> 150private static bool TryGetOrCreateComInterfaceForObjectInternal(ComWrappers impl, object instance, CreateComInterfaceFlags flags, out IntPtr retValue) 162internal static unsafe void* CallComputeVtables(ComWrappersScenario scenario, ComWrappers? comWrappersImpl, object obj, CreateComInterfaceFlags flags, out int count) 164ComWrappers? impl = null; 195/// using this <see cref="ComWrappers" /> instance, the previously created object will be returned. 208internal static object? CallCreateObject(ComWrappersScenario scenario, ComWrappers? comWrappersImpl, IntPtr externalComObject, CreateObjectFlags flags) 210ComWrappers? impl = null; 275/// <param name="impl">The <see cref="ComWrappers" /> implementation to use when creating the managed object.</param> 286ComWrappers impl, 309internal static void CallReleaseObjects(ComWrappers? comWrappersImpl, IEnumerable objects) 313/// Register a <see cref="ComWrappers" /> instance to be used as the global instance for reference tracker support. 323public static void RegisterForTrackerSupport(ComWrappers instance) 341/// Register a <see cref="ComWrappers" /> instance to be used as the global instance for marshalling in the runtime. 354public static void RegisterForMarshalling(ComWrappers instance)
System.Private.Windows.Core (9)
Windows\Win32\System\Com\ComHelpers.cs (5)
94else if (ComWrappers.TryGetComInstance(@object, out nint unknown)) 139if (ComWrappers.TryGetObject((nint)unknown, out object? obj)) 252if (ComWrappers.TryGetObject((nint)unknown, out object? obj)) 286/// <see cref="ComWrappers"/> capable wrapper for <see cref="Marshal.GetObjectForIUnknown(nint)"/>. 297if (ComWrappers.TryGetObject((nint)unknown, out object? obj))
Windows\Win32\System\Com\ComInterfaceTable.cs (1)
5using static System.Runtime.InteropServices.ComWrappers;
Windows\Win32\System\Com\IComCallableWrapper.cs (1)
69/// Used to flag that the COM object is a <see cref="ComWrappers"/> generated object.
Windows\Win32\System\Com\WinFormsComStrategy.cs (1)
19/// strategy for <see cref="ComWrappers.ComputeVtables(object, CreateComInterfaceFlags, out int)"/>. We rely
Windows\Win32\System\Com\WinFormsComWrappers.cs (1)
9/// The <see cref="ComWrappers"/> implementation for WinForm's COM interop usages.
System.Runtime.InteropServices (14)
artifacts\obj\System.Runtime.InteropServices\Debug\net10.0\System.Runtime.InteropServices.Forwards.cs (1)
72[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.ComWrappers))]
System\Runtime\InteropServices\Marshalling\ComExposedClassAttribute.cs (1)
16public unsafe ComWrappers.ComInterfaceEntry* GetComInterfaceEntries(out int count) => T.GetComInterfaceEntries(out count);
System\Runtime\InteropServices\Marshalling\ComInterfaceMarshaller.cs (2)
13/// to <see cref="ComWrappers.GetOrCreateObjectForComInstance(IntPtr, CreateObjectFlags)"/>. 37if (!ComWrappers.TryGetComInstance(managed, out nint unknown))
System\Runtime\InteropServices\Marshalling\IComExposedClass.cs (2)
13/// Get the COM interface information to provide to a <see cref="ComWrappers"/> instance to expose this type to COM. 17public static abstract ComWrappers.ComInterfaceEntry* GetComInterfaceEntries(out int count);
System\Runtime\InteropServices\Marshalling\IComExposedDetails.cs (2)
15/// Get the COM interface information to provide to a <see cref="ComWrappers"/> instance to expose this type to COM. 19ComWrappers.ComInterfaceEntry* GetComInterfaceEntries(out int count);
System\Runtime\InteropServices\Marshalling\StrategyBasedComWrappers.cs (4)
12/// A <see cref="ComWrappers"/>-based type that uses customizable strategy objects to implement COM object wrappers and managed object wrappers exposed to COM. 76/// <inheritdoc cref="ComWrappers.ComputeVtables" /> 87/// <inheritdoc cref="ComWrappers.CreateObject" /> 104/// <inheritdoc cref="ComWrappers.ReleaseObjects" />
System\Runtime\InteropServices\Marshalling\UniqueComInterfaceMarshaller.cs (2)
14/// to <see cref="ComWrappers.GetOrCreateObjectForComInstance(IntPtr, CreateObjectFlags)"/>. 36if (!ComWrappers.TryGetComInstance(managed, out nint unknown))
System.Windows.Forms (1)
System\Windows\Forms\OLE\DropTarget.cs (1)
50if (ComWrappers.TryGetObject(unknown, out object? obj) && obj is IDataObject dataObject)
System.Windows.Forms.Tests (1)
System\Windows\Forms\ComponentModel\Com2Interop\ComNativeDescriptorTests.cs (1)
327public static ComWrappers Instance { get; } = new UnknownComWrappers();