Marshals data from an unmanaged block of memory to a newly allocated object of the specified type.
[Visual Basic] Overloads Public Shared Function PtrToStructure( _ ByVal ptr As Integer, _ ByVal structuretype As Type _ ) As Object [C#] public static object PtrToStructure( int ptr, Type structuretype ); [C++] public: static Object* PtrToStructure( int ptr, Type* structuretype ); [JScript] public static function PtrToStructure( ptr : int, structuretype : Type ) : Object;
A managed object containing the data pointed to by ptr.
Marshal Class | Marshal Members | System.Runtime.InteropServices Namespace | Marshal.PtrToStructure Overload List