I don’t do P/Invoke often, and somehow I have trouble remembering the value of CharSet to pass with DllImport. In short,*pass CharSet.Auto unless you P/Invoke a function that is specific to CharSet.Ansi or CharSet.Unicode. The default is CharSet.Ansi, which you*usually*don’t want: when ...
More...