Partilhar via


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

Definição

Cuidado

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

Obtém um ponteiro para uma função gerada pelo runtime que realiza marshaling de uma chamada de código não gerenciado para gerenciado.

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

Parâmetros

pfnMethodToWrap
IntPtr

nativeint

Um ponteiro para o método para realizar marshaling.

pbSignature
IntPtr

nativeint

Um ponteiro para a assinatura do método.

cbSignature
Int32

O número de bytes em pbSignature.

Retornos

IntPtr

nativeint

Um ponteiro para uma função que realizará marshaling de uma chamada de pfnMethodToWrap para código gerenciado.

Atributos

Comentários

GetUnmanagedThunkForManagedMethodPtr é exposto somente para suporte do compilador.

Aplica-se a