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.PtrToStringAnsi (Int32)

Copies an ANSI string, stored in native heap, to a managed String object. Widens each ASCII character to UNICODE.

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

Parameters

ptr
Address in native heap of source string.

Return Value

Managed String object, holding a copy of the native, ANSI string.

See Also

Marshal Class | Marshal Members | System.Runtime.InteropServices Namespace | Marshal.PtrToStringAnsi Overload List