use Unicode for SHGetFileInfo

fixes #14 https://github.com/Hofknecht/SystemTrayMenu/issues/14
This commit is contained in:
Peter Kirmeier 2019-07-07 10:43:00 +02:00
parent a5aee52858
commit a8aebe16e2
2 changed files with 3 additions and 3 deletions

View file

@ -255,7 +255,7 @@ namespace SystemTrayMenu.Helper
public const int ILD_TRANSPARENT = 0x00000001;
[DllImport("Shell32.dll")]
[DllImport("Shell32.dll", CharSet = CharSet.Unicode)]
public static extern IntPtr SHGetFileInfo(
string pszPath,
uint dwFileAttributes,

View file

@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.9.1.239")]
[assembly: AssemblyFileVersion("0.9.1.239")]
[assembly: AssemblyVersion("0.9.1.240")]
[assembly: AssemblyFileVersion("0.9.1.240")]