11 references to GetOrCreateComInterfaceForObject
PresentationFramework (1)
MS\Internal\WindowsRuntime\Generated\WinRT\ComWrappersSupport.net5.cs (1)
35
IntPtr ccw = ComWrappers.
GetOrCreateComInterfaceForObject
(obj, CreateComInterfaceFlags.TrackerSupport);
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComWrappers.cs (3)
1479
/// the call to <see cref="
GetOrCreateComInterfaceForObject
(object, CreateComInterfaceFlags)"/> will throw a <see cref="ArgumentException"/>.
1529
return s_globalInstanceForMarshalling.
GetOrCreateComInterfaceForObject
(instance, CreateComInterfaceFlags.TrackerSupport);
1566
return s_globalInstanceForTrackerSupport.
GetOrCreateComInterfaceForObject
(obj, CreateComInterfaceFlags.TrackerSupport);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\CreateComInterfaceFlags.cs (1)
7
/// Enumeration of flags for <see cref="ComWrappers.
GetOrCreateComInterfaceForObject
(object, CreateComInterfaceFlags)"/>.
System.Private.Windows.Core (1)
Windows\Win32\System\Com\ComHelpers.cs (1)
91
ccw = (IUnknown*)WinFormsComWrappers.Instance.
GetOrCreateComInterfaceForObject
(@object, CreateComInterfaceFlags.None);
System.Runtime.InteropServices (5)
System\Runtime\InteropServices\Marshalling\ComInterfaceMarshaller.cs (1)
39
unknown = StrategyBasedComWrappers.DefaultMarshallingInstance.
GetOrCreateComInterfaceForObject
(managed, CreateComInterfaceFlags.None);
System\Runtime\InteropServices\Marshalling\ComVariantMarshaller.cs (3)
100
variant = ComVariant.CreateRaw(VarEnum.VT_UNKNOWN, StrategyBasedComWrappers.DefaultMarshallingInstance.
GetOrCreateComInterfaceForObject
(wrapped, CreateComInterfaceFlags.None));
105
variant = ComVariant.CreateRaw(VarEnum.VT_UNKNOWN, StrategyBasedComWrappers.DefaultMarshallingInstance.
GetOrCreateComInterfaceForObject
(managed, CreateComInterfaceFlags.None));
327
*(IntPtr*)_unmanaged.GetRawDataRef<nint>() = StrategyBasedComWrappers.DefaultMarshallingInstance.
GetOrCreateComInterfaceForObject
(unkObj, CreateComInterfaceFlags.None);
System\Runtime\InteropServices\Marshalling\UniqueComInterfaceMarshaller.cs (1)
38
unknown = StrategyBasedComWrappers.DefaultMarshallingInstance.
GetOrCreateComInterfaceForObject
(managed, CreateComInterfaceFlags.None);