Fixes for CharSet marshaling, this caused problems with the IE Capturing.

This commit is contained in:
RKrom 2014-06-20 17:29:27 +02:00
parent d1c7ee5e87
commit aad04bc9d7
7 changed files with 16 additions and 16 deletions

View file

@ -30,7 +30,7 @@ namespace GreenshotPlugin.UnmanagedHelpers {
/// </summary>
public class PsAPI {
private static readonly ILog LOG = LogManager.GetLogger(typeof(PsAPI));
[DllImport("psapi", SetLastError = true, CharSet=CharSet.Unicode)]
[DllImport("psapi", SetLastError = true, CharSet = CharSet.Unicode)]
public static extern uint GetModuleFileNameEx(IntPtr hProcess, IntPtr hModule, StringBuilder lpFilename, uint nSize);
[DllImport("psapi", SetLastError = true, CharSet = CharSet.Unicode)]
public static extern uint GetProcessImageFileName(IntPtr hProcess, StringBuilder lpImageFileName, uint nSize);