NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Marshal.PtrToStructure

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

Overload List

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

[Visual Basic] Overloads Public Shared Function PtrToStructure(Integer, Type) As Object
[C#] public static object PtrToStructure(int, Type);
[C++] public: static Object* PtrToStructure(int, Type);
[JScript] public static function PtrToStructure(int, Type) : Object;

Marshals data from an unmanaged block of memory pointed to a managed object. The object must be an instance of a formatted class (structure class).

[Visual Basic] Overloads Public Shared Sub PtrToStructure(Integer, Object)
[C#] public static void PtrToStructure(int, Object);
[C++] public: static void PtrToStructure(int, Object);
[JScript] public static function PtrToStructure(int, Object);

See Also

Marshal Class | Marshal Members | System.Runtime.InteropServices Namespace