Marshal.GetManagedThunkForUnmanagedMethodPtr(IntPtr, IntPtr, Int32) 方法

定义

注意

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

获取指向运行时生成的函数的指针,该函数将调用从托管代码封送到非托管代码。

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

参数

pfnMethodToWrap
IntPtr

nativeint

指向要封送的方法的指针。

pbSignature
IntPtr

nativeint

指向方法签名的指针。

cbSignature
Int32

pbSignature 中的字节数。

返回

IntPtr

nativeint

指向一个函数的指针,该函数将调用从 pfnMethodToWrap 参数封送到非托管代码。

属性

注解

GetManagedThunkForUnmanagedMethodPtr 仅公开编译器支持。

适用于