4 types derived from ComWrappers
PresentationFramework (1)
System.Private.Windows.Core (1)
System.Runtime.InteropServices (1)
System.Windows.Forms.Tests (1)
65 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)
486public IntPtr ComIp => _wrapper->As(in ComWrappers.IID_IUnknown);
536private ComWrappers _comWrappers;
555ComWrappers comWrappers,
579protected NativeObjectWrapper(IntPtr externalComObject, IntPtr inner, ComWrappers comWrappers, object comProxy, CreateObjectFlags flags)
607internal ComWrappers ComWrappers => _comWrappers;
668ComWrappers comWrappers,
735private static ComWrappers? s_globalInstanceForTrackerSupport;
737internal static ComWrappers? GlobalInstanceForTrackerSupport => s_globalInstanceForTrackerSupport;
742private static ComWrappers? s_globalInstanceForMarshalling;
744internal static object? GetOrCreateObjectFromWrapper(ComWrappers wrapper, IntPtr externalComObject)
772/// this <see cref="ComWrappers" /> instance, the previously created COM interface will be returned.
902/// using this <see cref="ComWrappers" /> instance, the previously created object will be returned.
923/// using this <see cref="ComWrappers" /> instance, the previously created object will be returned.
1376/// Register a <see cref="ComWrappers" /> instance to be used as the global instance for reference tracker support.
1386public static void RegisterForTrackerSupport(ComWrappers instance)
1397/// Register a <see cref="ComWrappers" /> instance to be used as the global instance for marshalling in the runtime.
1410public static void RegisterForMarshalling(ComWrappers instance)
1544if (context is not ComWrappers comWrappers)
1581out ComWrappers? wrapper))
System.Private.Windows.Core (10)
System.Runtime.InteropServices (15)
System.Windows.Forms (1)
System.Windows.Forms.Tests (1)