Marshal.GetManagedThunkForUnmanagedMethodPtr(IntPtr, IntPtr, Int32) Método

Definição

Atenção

The GetManagedThunkForUnmanagedMethodPtr method has been deprecated and will be removed in a future release.

Recebe um ponteiro para uma função gerada em tempo de execução que faz o marshal de uma chamada de código gerido para código não gerido.

public:
 static IntPtr GetManagedThunkForUnmanagedMethodPtr(IntPtr pfnMethodToWrap, IntPtr pbSignature, int cbSignature);
public static IntPtr GetManagedThunkForUnmanagedMethodPtr(IntPtr pfnMethodToWrap, IntPtr pbSignature, int cbSignature);
[System.Obsolete("The GetManagedThunkForUnmanagedMethodPtr method has been deprecated and will be removed in a future release.", false)]
public static IntPtr GetManagedThunkForUnmanagedMethodPtr(IntPtr pfnMethodToWrap, IntPtr pbSignature, int cbSignature);
[System.Obsolete("The GetManagedThunkForUnmanagedMethodPtr method has been deprecated and will be removed in a future release.", false)]
[System.Security.SecurityCritical]
public static IntPtr GetManagedThunkForUnmanagedMethodPtr(IntPtr pfnMethodToWrap, IntPtr pbSignature, int cbSignature);
static member GetManagedThunkForUnmanagedMethodPtr : nativeint * nativeint * int -> nativeint
[<System.Obsolete("The GetManagedThunkForUnmanagedMethodPtr method has been deprecated and will be removed in a future release.", false)>]
static member GetManagedThunkForUnmanagedMethodPtr : nativeint * nativeint * int -> nativeint
[<System.Obsolete("The GetManagedThunkForUnmanagedMethodPtr method has been deprecated and will be removed in a future release.", false)>]
[<System.Security.SecurityCritical>]
static member GetManagedThunkForUnmanagedMethodPtr : nativeint * nativeint * int -> nativeint
Public Shared Function GetManagedThunkForUnmanagedMethodPtr (pfnMethodToWrap As IntPtr, pbSignature As IntPtr, cbSignature As Integer) As IntPtr

Parâmetros

pfnMethodToWrap
IntPtr

nativeint

Um indicador para o método a marshal.

pbSignature
IntPtr

nativeint

Um apontador para a assinatura do método.

cbSignature
Int32

O número de bytes em pbSignature.

Devoluções

IntPtr

nativeint

Um apontador para a função que irá enviar uma chamada do pfnMethodToWrap parâmetro para código não gerido.

Atributos

Observações

GetManagedThunkForUnmanagedMethodPtr está exposto apenas para suporte de compiladores.

Aplica-se a