Comparteix a través de


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

Definición

Precaución

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

Obtiene un puntero a una función generada en tiempo de ejecución que calcula las referencias a una llamada de código administrado a código no administrado.

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

Puntero al método del que se van a calcular las referencias.

pbSignature
IntPtr

nativeint

Puntero a la firma del método.

cbSignature
Int32

Número de bytes en pbSignature.

Devoluciones

IntPtr

nativeint

Puntero a la función que serializará una llamada desde el parámetro pfnMethodToWrap a código no administrado.

Atributos

Comentarios

GetManagedThunkForUnmanagedMethodPtr solo se expone para la compatibilidad del compilador.

Se aplica a