Bagikan melalui


ComWrappers.GetIUnknownImpl(IntPtr, IntPtr, IntPtr) Metode

Definisi

Mendapatkan implementasi IUnknown yang disediakan runtime.

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)

Parameter

fpQueryInterface
IntPtr

nativeint

Penunjuk fungsi ke QueryInterface.

fpAddRef
IntPtr

nativeint

Penunjuk fungsi ke AddRef.

fpRelease
IntPtr

nativeint

Penunjuk fungsi ke Rilis.

Keterangan

Implementasi runtime dari fungsi-fungsi ini IUnknown semuanya aman untuk utas. Masing-masing dioptimalkan dan secara ketat mengikuti aturan COM untuk IUnknown. Implementasinya QueryInterface juga menghormati ICustomQueryInterface antarmuka. Antarmuka ICustomQueryInterface tidak akan pernah memiliki kesempatan untuk mengambil alih antarmuka yang disediakan runtime. Misalnya, secara default runtime menyediakan IUnknown antarmuka dan, secara opsional, antarmuka Pelacak IReferenceTrackerTarget Referensi.

Berlaku untuk