Copies the contents of a string to block of memory allocated from the unmanaged COM task allocator. The characters of the string are copied as Unicode characters.
[Visual Basic] Public Shared Function StringToCoTaskMemUni( _ ByVal s As String _ ) As Integer [C#] public static int StringToCoTaskMemUni( string s ); [C++] public: static int StringToCoTaskMemUni( String* s ); [JScript] public static function StringToCoTaskMemUni( s : String ) : int;
An integer representing a pointer to the block of memory allocated for the string.
Marshal Class | Marshal Members | System.Runtime.InteropServices Namespace