Marshal::GetManagedThunkForUnmanagedMethodPtr Method (IntPtr, IntPtr, Int32)
.NET Framework (current version)
Note: This API is now obsolete.
Namespace:
System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Return to top
Gets a pointer to a runtime-generated function that marshals a call from managed to unmanaged code.
Assembly: mscorlib (in mscorlib.dll)
public: [SecurityCriticalAttribute] [ObsoleteAttribute("The GetManagedThunkForUnmanagedMethodPtr method has been deprecated and will be removed in a future release.", false)] static IntPtr GetManagedThunkForUnmanagedMethodPtr( IntPtr pfnMethodToWrap, IntPtr pbSignature, int cbSignature )
Parameters
- pfnMethodToWrap
-
Type:
System::IntPtr
A pointer to the method to marshal.
- pbSignature
-
Type:
System::IntPtr
A pointer to the method signature.
- cbSignature
-
Type:
System::Int32
The number of bytes in pbSignature.
Return Value
Type: System::IntPtrA pointer to the function that will marshal a call from the pfnMethodToWrap parameter to unmanaged code.
GetManagedThunkForUnmanagedMethodPtr is exposed for compiler support only.
SecurityCriticalAttribute
requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.
.NET Framework
Available since 1.1
Available since 1.1
Show: