Marshal.GetUnmanagedThunkForManagedMethodPtr Method (IntPtr, IntPtr, Int32)
Gets a pointer to a runtime-generated function that marshals a call from unmanaged to managed code.
Assembly: mscorlib (in mscorlib.dll)
[SecurityCriticalAttribute] [ObsoleteAttribute("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 )
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 a function that will marshal a call from pfnMethodToWrap to managed 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