ComWrappers.GetIUnknownImpl(IntPtr, IntPtr, IntPtr) 方法

定义

获取运行时提供的 IUnknown 实现。

protected:
 static void GetIUnknownImpl([Runtime::InteropServices::Out] IntPtr % fpQueryInterface, [Runtime::InteropServices::Out] IntPtr % fpAddRef, [Runtime::InteropServices::Out] IntPtr % fpRelease);
protected static void GetIUnknownImpl (out IntPtr fpQueryInterface, out IntPtr fpAddRef, out IntPtr fpRelease);
static member GetIUnknownImpl : nativeint * nativeint * nativeint -> unit
Protected Shared Sub GetIUnknownImpl (ByRef fpQueryInterface As IntPtr, ByRef fpAddRef As IntPtr, ByRef fpRelease As IntPtr)

参数

fpQueryInterface
IntPtr

nativeint

指向 QueryInterface 的函数指针。

fpAddRef
IntPtr

nativeint

指向 AddRef 的函数指针。

fpRelease
IntPtr

nativeint

指向 Release 的函数指针。

注解

这些 IUnknown 函数的运行时实现都是线程安全的。 其中每个规则都经过优化,并严格遵循 COM 规则 IUnknown。 实现 QueryInterface 还尊重 ICustomQueryInterface 接口。 该 ICustomQueryInterface 接口永远不会有机会替代运行时提供的接口。 例如,默认情况下,运行时提供 IUnknown 接口,以及(可选)引用跟踪器 IReferenceTrackerTarget 接口。

适用于