4 types derived from ComWrappers
PresentationFramework (1)
System.Private.Windows.Core (1)
System.Runtime.InteropServices (1)
System.Windows.Forms.Tests (1)
67 references to ComWrappers
PresentationFramework (3)
System.ComponentModel.TypeConverter (1)
System.Private.CoreLib (34)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComWrappers.cs (21)
69/// Associates a managed object with the <see cref="ManagedObjectWrapperHolder"/> that was created for it by this <see cref="ComWrappers" /> instance.
74internal static bool TryGetComInstanceForIID(object obj, Guid iid, out IntPtr unknown, out ComWrappers? comWrappers)
497public IntPtr ComIp => _wrapper->As(in ComWrappers.IID_IUnknown);
547private ComWrappers _comWrappers;
566ComWrappers comWrappers,
590protected NativeObjectWrapper(IntPtr externalComObject, IntPtr inner, ComWrappers comWrappers, object comProxy, CreateObjectFlags flags)
618internal ComWrappers ComWrappers => _comWrappers;
679ComWrappers comWrappers,
746private static ComWrappers? s_globalInstanceForTrackerSupport;
748internal static ComWrappers? GlobalInstanceForTrackerSupport => s_globalInstanceForTrackerSupport;
753private static ComWrappers? s_globalInstanceForMarshalling;
755internal static object? GetOrCreateObjectFromWrapper(ComWrappers wrapper, IntPtr externalComObject)
783/// this <see cref="ComWrappers" /> instance, the previously created COM interface will be returned.
913/// using this <see cref="ComWrappers" /> instance, the previously created object will be returned.
934/// using this <see cref="ComWrappers" /> instance, the previously created object will be returned.
1423/// Register a <see cref="ComWrappers" /> instance to be used as the global instance for reference tracker support.
1433public static void RegisterForTrackerSupport(ComWrappers instance)
1444/// Register a <see cref="ComWrappers" /> instance to be used as the global instance for marshalling in the runtime.
1457public static void RegisterForMarshalling(ComWrappers instance)
1591if (context is not ComWrappers comWrappers)
1628out ComWrappers? wrapper))
System.Private.Windows.Core (12)
System.Runtime.InteropServices (15)
System.Windows.Forms (1)
System.Windows.Forms.Tests (1)