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

Copies a specified number of characters from a UNICODE string, stored in native heap, to a managed String object.

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

Parameters

ptr
Address in native heap of source string
len
Number of UNICODE characters to copy

Return Value

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

See Also

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