ComWrappers.GetIUnknownImpl(IntPtr, IntPtr, IntPtr) Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
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.