title: DllImport and char*
body: <p>I have a method I want to import from a DLL and it has a signature of:</p>
  
  <pre><code>BOOL GetDriveLetter(OUT char* DriveLetter)
  </code></pre>
  
  <p>I've tried</p>
  
  <pre><code>    [DllImport("mydll.dll")]
      public static extern bool GetDriveLetter(byte[] DriveLetter);
  </code></pre>
  
  <p>and </p>
  
  <pre><code>    [DllImport("mydll.dll")]
      public static extern bool GetDriveLetter(StringBuilder DriveLetter);
  </code></pre>
  
  <p>but neither returned anything in the DriveLetter variable.</p>