Szerkesztés

Megosztás a következőn keresztül:


Marshal.GetManagedThunkForUnmanagedMethodPtr(IntPtr, IntPtr, Int32) Method

Definition

Caution

The GetManagedThunkForUnmanagedMethodPtr 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 managed to unmanaged code.

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

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 the function that will marshal a call from the pfnMethodToWrap parameter to unmanaged code.

Attributes

Remarks

GetManagedThunkForUnmanagedMethodPtr is exposed for compiler support only.

Applies to