Edit

Share via


Marshal.GetUnmanagedThunkForManagedMethodPtr(IntPtr, IntPtr, Int32) Method

Definition

Caution

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

Gets a pointer to a runtime-generated function that marshals a call from unmanaged to managed code.

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

Parameters

pfnMethodToWrap
IntPtr

nativeint

A pointer to the method to marshal.

pbSignature
IntPtr

nativeint

A pointer to the method signature.

cbSignature
Int32

The number of bytes in pbSignature.

Returns

IntPtr

nativeint

A pointer to a function that will marshal a call from pfnMethodToWrap to managed code.

Attributes

Remarks

GetUnmanagedThunkForManagedMethodPtr is exposed for compiler support only.

Applies to