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

Définition

Attention

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

Obtient un pointeur vers une fonction générée par runtime qui marshale un appel du code non managé à du code managé.

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

Paramètres

pfnMethodToWrap
IntPtr

nativeint

Pointeur vers la méthode à marshaler.

pbSignature
IntPtr

nativeint

Pointeur vers la signature de la méthode.

cbSignature
Int32

Nombre d'octets dans pbSignature.

Retours

IntPtr

nativeint

Pointeur vers une fonction qui doit marshaler un appel de pfnMethodToWrap vers du code managé.

Attributs

Remarques

GetUnmanagedThunkForManagedMethodPtr est exposé pour la prise en charge du compilateur uniquement.

S’applique à