Evaluar y enviar comentarios
MSDN
MSDN Library
 GetManagedThunkForUnmanagedMethodPt...
Contraer todo/Expandir todo Contraer todo
Esta página es específica de
Microsoft Visual Studio 2005/.NET Framework 2.0

Hay además otras versiones disponibles para:
Biblioteca de clases de .NET Framework
Marshal.GetManagedThunkForUnmanagedMethodPtr (Método)

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)

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
Visual Basic (Uso)
Dim pfnMethodToWrap As IntPtr
Dim pbSignature As IntPtr
Dim cbSignature As Integer
Dim returnValue As IntPtr

returnValue = Marshal.GetManagedThunkForUnmanagedMethodPtr(pfnMethodToWrap, pbSignature, cbSignature)
C#
[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
)
C++
[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
)
J#
/** @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
)
JScript
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.

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

NotaNota

Este método utiliza SecurityAction.LinkDemand para evitar que se le llame desde código que no sea de confianza; sólo el llamador inmediato debe disponer del permiso SecurityPermissionAttribute.UnmanagedCode. Si se puede llamar al código desde código de confianza parcial, no pase ninguna entrada de usuario a los métodos de la clase Marshal sin validación. Para conocer las limitaciones importantes que existen a la hora de utilizar el miembro LinkDemand, vea Demand frente a LinkDemand.

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.

.NET Framework

Compatible con: 1.0, 1.1
Obsoleto (advertencia del compilador) en 2.0
Contenido de la comunidad   ¿Qué es Community Content?
Agregar contenido nuevo RSS  Anotaciones
Processing
© 2012 Microsoft. Reservados todos los derechos. Términos de uso | Marcas Registradas | Privacidad
Page view tracker