9 references to TryGetComInstance
Microsoft.Diagnostics.DataContractReader.Legacy (1)
ClrDataModule.cs (1)
47
if (legacyImpl is not null && System.Runtime.InteropServices.ComWrappers.
TryGetComInstance
(legacyImpl, out _legacyModulePointer))
System.ComponentModel.TypeConverter (1)
System\ComponentModel\TypeDescriptor.cs (1)
1762
&& ComWrappers.
TryGetComInstance
(instance, out nint unknown))
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\ComWrappers.cs (1)
1552
if (
TryGetComInstance
(instance, out IntPtr comObject))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\CreatedWrapperFlags.cs (1)
24
/// <see cref="ComWrappers.
TryGetComInstance
" /> will return <c>false</c> for the returned object.
System.Private.Windows.Core (1)
Windows\Win32\System\Com\ComHelpers.cs (1)
97
else if (ComWrappers.
TryGetComInstance
(@object, out nint unknown))
System.Runtime.InteropServices (2)
System\Runtime\InteropServices\Marshalling\ComInterfaceMarshaller.cs (1)
37
if (!ComWrappers.
TryGetComInstance
(managed, out nint unknown))
System\Runtime\InteropServices\Marshalling\UniqueComInterfaceMarshaller.cs (1)
36
if (!ComWrappers.
TryGetComInstance
(managed, out nint unknown))
System.Transactions.Local (2)
System\Transactions\TransactionInterop.cs (2)
291
ComWrappers.
TryGetComInstance
(transactionNative, out IntPtr transactionNativePtr);
314
ComWrappers.
TryGetComInstance
(transaction, out IntPtr transactionNativePtr);