Compartilhar via


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

 

Dica

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Observação: Esta API agora está obsoleta.

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

Namespace:   System.Runtime.InteropServices
Assembly:  mscorlib (em mscorlib.dll)

Sintaxe

[SecurityCriticalAttribute]
[ObsoleteAttribute("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
)
public:
[SecurityCriticalAttribute]
[ObsoleteAttribute("The GetUnmanagedThunkForManagedMethodPtr method has been deprecated and will be removed in a future release.", 
    false)]
static IntPtr GetUnmanagedThunkForManagedMethodPtr(
    IntPtr pfnMethodToWrap,
    IntPtr pbSignature,
    int cbSignature
)
[<SecurityCriticalAttribute>]
[<ObsoleteAttribute("The GetUnmanagedThunkForManagedMethodPtr method has been deprecated and will be removed in a future release.",
    false)>]
static member GetUnmanagedThunkForManagedMethodPtr : 
        pfnMethodToWrap:nativeint *
        pbSignature:nativeint *
        cbSignature:int -> nativeint
<SecurityCriticalAttribute>
<ObsoleteAttribute("The GetUnmanagedThunkForManagedMethodPtr method has been deprecated and will be removed in a future release.",
    False)>
Public Shared Function GetUnmanagedThunkForManagedMethodPtr (
    pfnMethodToWrap As IntPtr,
    pbSignature As IntPtr,
    cbSignature As Integer
) As IntPtr

Parâmetros

  • pfnMethodToWrap
    Type: System.IntPtr

    Um ponteiro para o método para realizar marshaling.

  • pbSignature
    Type: System.IntPtr

    Um ponteiro para a assinatura do método.

  • cbSignature
    Type: System.Int32

    O número de bytes em pbSignature.

Valor Retornado

Type: System.IntPtr

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

Comentários

GetUnmanagedThunkForManagedMethodPtré exposta para suporte de compilador somente.

Segurança

SecurityCriticalAttribute

requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.

Informações de Versão

.NET Framework
Disponível desde 1.1

Confira Também

Classe Marshal
Namespace System.Runtime.InteropServices

Retornar ao início