mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
fixed Allow only one instance to work even if PH is running elevated
git-svn-id: svn://svn.code.sf.net/p/processhacker/code@792 21ef857c-d57f-4fe0-8362-d861dc6d29cd
This commit is contained in:
@@ -264,8 +264,8 @@ namespace ProcessHacker
|
||||
if (Win32.SendMessage(hWnd, (Win32.WindowMessage)0x9991, IntPtr.Zero, IntPtr.Zero).ToInt32() ==
|
||||
0x1119)
|
||||
{
|
||||
Win32.ShowWindow(hWnd, Win32.ShowWindowType.Restore);
|
||||
Win32.ShowWindow(hWnd, Win32.ShowWindowType.Show);
|
||||
Win32.SendMessage(hWnd, Win32.WindowMessage.SysCommand, new IntPtr(0xf120), IntPtr.Zero);
|
||||
Win32.SendMessage(hWnd, Win32.WindowMessage.ShowWindow, IntPtr.Zero, IntPtr.Zero);
|
||||
Win32.SetForegroundWindow(hWnd);
|
||||
found = true;
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user