NOTA: este método ya está obsoleto.
Obtiene un puntero a thunk que calcula las referencias a una llamada de código administrado a código no administrado.
Espacio de nombres: System.Runtime.InteropServices
Ensamblado: mscorlib (en mscorlib.dll)

Sintaxis
Visual Basic (Declaración)
<ObsoleteAttribute("The GetManagedThunkForUnmanagedMethodPtr method has been deprecated and will be removed in a future release.", False)> _
Public Shared Function GetManagedThunkForUnmanagedMethodPtr ( _
pfnMethodToWrap As IntPtr, _
pbSignature As IntPtr, _
cbSignature As Integer _
) As IntPtr
Dim pfnMethodToWrap As IntPtr
Dim pbSignature As IntPtr
Dim cbSignature As Integer
Dim returnValue As IntPtr
returnValue = Marshal.GetManagedThunkForUnmanagedMethodPtr(pfnMethodToWrap, pbSignature, cbSignature)
[ObsoleteAttribute("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
)
[ObsoleteAttribute(L"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
)
/** @attribute ObsoleteAttribute("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
)
ObsoleteAttribute("The GetManagedThunkForUnmanagedMethodPtr method has been deprecated and will be removed in a future release.", false)
public static function GetManagedThunkForUnmanagedMethodPtr (
pfnMethodToWrap : IntPtr,
pbSignature : IntPtr,
cbSignature : int
) : IntPtr
Parámetros
- pfnMethodToWrap
Puntero al método que se va a calcular.
- pbSignature
Puntero a la firma del método.
- cbSignature
Número de bytes en pbSignature.
Valor devuelto
Puntero al thunk que calculará las referencias a una llamada desde el parámetro
pfnMethodToWrap.

Comentarios
GetManagedThunkForUnmanagedMethodPtr se expone únicamente para proporcionar compatibilidad con el compilador.

Seguridad de .NET Framework

Plataformas
Windows 98, Windows 2000 SP4, Windows Millennium, Windows Server 2003, Windows XP Media Center, Windows XP Professional x64, Windows XP SP2, Windows XP Starter Edition
.NET Framework no admite todas las versiones de cada plataforma. Para obtener una lista de las versiones admitidas, vea Requisitos del sistema.

Información de versión
.NET Framework
Compatible con: 1.0, 1.1
Obsoleto (advertencia del compilador) en 2.0

Vea también