Marshal.GetManagedThunkForUnmanagedMethodPtr Method (IntPtr, IntPtr, Int32)
Gets a pointer to a runtime-generated function that marshals a call from managed to unmanaged code.
Assembly: mscorlib (in mscorlib.dll)
[SecurityCriticalAttribute] [ObsoleteAttribute("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 )
A pointer to the method to marshal.
A pointer to the method signature.
The number of bytes in pbSignature.
Return ValueType: System.IntPtr
A pointer to the function that will marshal a call from the pfnMethodToWrap parameter to unmanaged code.
is exposed for compiler support only.
requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.
Available since 1.1