System.Runtime.InteropServices.Marshal.GetManagedThunkForUnmanagedMethodPtr Method

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

Syntax

[System.Obsolete("This method has been deprecated")]
public static IntPtr GetManagedThunkForUnmanagedMethodPtr (IntPtr pfnMethodToWrap, IntPtr pbSignature, int cbSignature)

Parameters

pfnMethodToWrap
A pointer to the method to marshal.
pbSignature
A pointer to the method signature.
cbSignature
The number of bytes in pbSignature.

Returns

A pointer to the function that will marshal a call from the pfnMethodToWrap parameter to unmanaged code.

Remarks

Requirements

Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0