title: UNICODE_STRING to Null terminated
body: <p>I need to convert a UNICODE_STRING structure to a simple NULL TERMINATED STRING.</p>
  
  <pre><code>typedef 
  struct _UNICODE_STRING 
  {
      USHORT  Length;  
      USHORT  MaximumLength;  
      PWSTR   Buffer;
  } 
  UNICODE_STRING, *PUNICODE_STRING;
  </code></pre>
  
  <p>I can't find a clean sollution on MSDN about it.
  Anyone been there?
  I am not using .net so I need a native API sollution.</p>
  
  <p>Thanks a lot!</p>