Marshal.PtrToStructure Method (IntPtr, Object)
Marshals data from an unmanaged block of memory to a managed object.
Assembly: mscorlib (in mscorlib.dll)
[SecurityCriticalAttribute] [ComVisibleAttribute(true)] public static void PtrToStructure( IntPtr ptr, object structure )
Structure layout is not sequential or explicit.
Structure is a boxed value type.
System.IntPtr value. You cannot use this overload method with value types.is often necessary in COM interop and platform invoke when structure parameters are represented as an
requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.
Available since 8
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 8.1