ComWrappers.GetIUnknownImpl(IntPtr, IntPtr, IntPtr) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得執行階段提供的 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
函式的執行時間實作全都是安全線程。 其中每一個都會經過優化,並嚴格遵循 的 IUnknown
COM 規則。 實作 QueryInterface
也會遵守 ICustomQueryInterface 介面。 介面 ICustomQueryInterface
永遠不會有機會覆寫執行時間提供的介面。 例如,根據預設,執行時間會提供 介面,並選擇性地提供 IUnknown
參考追蹤器 IReferenceTrackerTarget
介面。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應