Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Marshal::GetUnmanagedThunkForManagedMethodPtr Method (IntPtr, IntPtr, Int32)

 
Note: This API is now obsolete.

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

Namespace:   System.Runtime.InteropServices
Assembly:  mscorlib (in mscorlib.dll)

public:
[SecurityCriticalAttribute]
[ObsoleteAttribute("The GetUnmanagedThunkForManagedMethodPtr method has been deprecated and will be removed in a future release.", 
	false)]
static IntPtr GetUnmanagedThunkForManagedMethodPtr(
	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::IntPtr

A pointer to a function that will marshal a call from pfnMethodToWrap to managed code.

GetUnmanagedThunkForManagedMethodPtr 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
Return to top
Show:
© 2017 Microsoft