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.PtrToStringAuto

Copies all or part of a string, stored in native heap, to a managed String object.

Overload List

Copies a specified number of characters from a string, stored in native heap, to a managed String object. Widens each ASCII character to UNICODE, if required. (If current platform is UNICODE, calls to PtrToStringUni else calls PtrToStringAnsi)

[Visual Basic] Overloads Public Shared Function PtrToStringAuto(Integer, Integer) As String
[C#] public static string PtrToStringAuto(int, int);
[C++] public: static String* PtrToStringAuto(int, int);
[JScript] public static function PtrToStringAuto(int, int) : String;

Copies a string, stored in native heap, to a managed String object. Automatically widens each ASCII character to UNICODE, if required. (If current platform is UNICODE, calls to PtrToStringUni else calls PtrToStringAnsi)

[Visual Basic] Overloads Public Shared Function PtrToStringAuto(Integer) As String
[C#] public static string PtrToStringAuto(int);
[C++] public: static String* PtrToStringAuto(int);
[JScript] public static function PtrToStringAuto(int) : String;

See Also

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