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);
public:
 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);
public 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)
Public 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 函数的运行时实现都是线程安全的。 其中每个都经过优化,并严格遵循 的 IUnknownCOM 规则。 实现 QueryInterface 还遵循 ICustomQueryInterface 接口。 接口 ICustomQueryInterface 将永远无法替代运行时提供的接口。 例如,默认情况下,运行时提供 IUnknown 接口和引用跟踪器 IReferenceTrackerTarget 接口(可选)。

适用于