mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
Code quality changes for stability and reduced memory usage.
This commit is contained in:
parent
eb042dca58
commit
08216b09c0
21 changed files with 342 additions and 316 deletions
|
@ -27,9 +27,9 @@ namespace GreenshotPlugin.UnmanagedHelpers {
|
|||
/// Description of PsAPI.
|
||||
/// </summary>
|
||||
public class PsAPI {
|
||||
[DllImport("psapi", SetLastError = true)]
|
||||
[DllImport("psapi", SetLastError = true, CharSet=CharSet.Unicode)]
|
||||
public static extern uint GetModuleFileNameEx(IntPtr hProcess, IntPtr hModule, StringBuilder lpFilename, uint nSize);
|
||||
[DllImport("psapi", SetLastError = true)]
|
||||
[DllImport("psapi", SetLastError = true, CharSet = CharSet.Unicode)]
|
||||
public static extern uint GetProcessImageFileName(IntPtr hProcess, StringBuilder lpImageFileName, uint nSize);
|
||||
[DllImport("psapi")]
|
||||
public static extern int EmptyWorkingSet(IntPtr hwProc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue