RtlInitUnicodeString (ntdll)
Last changed: -186.136.223.176

.
Summary
Converts a Unicode-Char-Array to an Unicode_String

C# Signature:

[DllImport("ntdll.dll")]
public static extern void RtlInitUnicodeString(
  ref UNICODE_STRING DestinationString,
  [MarshalAs(UnmanagedType.LPWStr)] string SourceString);

User-Defined Types:

public struct UNICODE_STRING
{
     public ushort Length;
     public ushort MaximumLength;
     [MarshalAs(UnmanagedType.LPWStr)]
     public string Buffer;
}

Sample Code:

http://www.rootkit.com/vault/hoglund/migbot.zip