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::PtrToStructure Method

 

Marshals data from an unmanaged block of memory to a managed object.

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

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticPtrToStructure(IntPtr, Object^)

Marshals data from an unmanaged block of memory to a managed object.

System_CAPS_pubmethodSystem_CAPS_staticPtrToStructure(IntPtr, Type^)

Marshals data from an unmanaged block of memory to a newly allocated managed object of the specified type.

System_CAPS_pubmethodSystem_CAPS_staticPtrToStructure<T>(IntPtr)

[Supported in the .NET Framework 4.5.1 and later versions]

Marshals data from an unmanaged block of memory to a newly allocated managed object of the type specified by a generic type parameter.

System_CAPS_pubmethodSystem_CAPS_staticPtrToStructure<T>(IntPtr, T)

[Supported in the .NET Framework 4.5.1 and later versions]

Marshals data from an unmanaged block of memory to a managed object of the specified type.

Return to top
Show:
© 2017 Microsoft