Marshal.GetUnmanagedThunkForManagedMethodPtr(IntPtr, IntPtr, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
The GetUnmanagedThunkForManagedMethodPtr method has been deprecated and will be removed in a future release.
获取指向运行时生成的函数的指针,该函数将调用从非托管代码封送到托管代码。
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
参数
- pfnMethodToWrap
-
IntPtr
nativeint
指向要封送的方法的指针。
- pbSignature
-
IntPtr
nativeint
指向方法签名的指针。
- cbSignature
- Int32
pbSignature
中的字节数。
返回
IntPtr
nativeint
指向一个函数的指针,该函数将调用从 pfnMethodToWrap
封送到托管代码。
- 属性
注解
GetUnmanagedThunkForManagedMethodPtr 公开仅用于编译器支持。