22 references to ComInterfaceDispatch
PresentationFramework (2)
MS\Internal\WindowsRuntime\Generated\WinRT\ComWrappersSupport.net5.cs (2)
40where T : class => ComInterfaceDispatch.GetInstance<T>((ComInterfaceDispatch*)ptr);
System.Private.CoreLib (12)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComWrappers.cs (12)
108ComInterfaceDispatch* comInterfaceDispatch = TryGetComInterfaceDispatch(unknown); 110ComInterfaceDispatch.ToManagedObjectWrapper(comInterfaceDispatch)->MarkedToDestroy) 115obj = ComInterfaceDispatch.GetInstance<object>(comInterfaceDispatch); 127/// Given a <see cref="ComInterfaceDispatch"/> pointer from a generated Vtable, convert to the target type. 132public static unsafe T GetInstance<T>(ComInterfaceDispatch* dispatchPtr) where T : class 138internal static unsafe ManagedObjectWrapper* ToManagedObjectWrapper(ComInterfaceDispatch* dispatchPtr) 988private static unsafe ComInterfaceDispatch* TryGetComInterfaceDispatch(IntPtr comObject) 1012return (ComInterfaceDispatch*)comObject; 1136ComInterfaceDispatch* comInterfaceDispatch = TryGetComInterfaceDispatch(identity); 1148object unwrapped = ComInterfaceDispatch.GetInstance<object>(comInterfaceDispatch); 1536ManagedObjectWrapper* wrapper = ComInterfaceDispatch.ToManagedObjectWrapper((ComInterfaceDispatch*)unknownPtr);
System.Private.Windows.Core (8)
Windows.Win32.ComHelpers.g.cs (2)
32 @object = ComWrappers.ComInterfaceDispatch.GetInstance<TInterface>((ComWrappers.ComInterfaceDispatch*)@this);
Windows\Win32\System\Com\WinFormsComWrappers.cs (6)
64TInterface? @object = ComInterfaceDispatch.GetInstance<TInterface>((ComInterfaceDispatch*)@this); 80TInterface? @object = ComInterfaceDispatch.GetInstance<TInterface>((ComInterfaceDispatch*)@this); 101TInterface? @object = ComInterfaceDispatch.GetInstance<TInterface>((ComInterfaceDispatch*)@this);