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