Compartilhar via


ComWrappers.GetIUnknownImpl(IntPtr, IntPtr, IntPtr) Método

Definição

Obtém a implementação IUnknown fornecida pelo runtime.

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

Parâmetros

fpQueryInterface
IntPtr

nativeint

Ponteiro de função para QueryInterface.

fpAddRef
IntPtr

nativeint

Ponteiro de função para AddRef.

fpRelease
IntPtr

nativeint

Ponteiro de função para Release.

Comentários

As implementações de runtime dessas IUnknown funções são todas thread-safe. Cada um deles é otimizado e segue estritamente as regras COM para IUnknown. A QueryInterface implementação também respeita a ICustomQueryInterface interface . A ICustomQueryInterface interface nunca terá a oportunidade de substituir as interfaces fornecidas pelo runtime. Por exemplo, por padrão, o runtime fornece a IUnknown interface e, opcionalmente, a interface do Rastreador IReferenceTrackerTarget de Referência.

Aplica-se a