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:
wj32
2009-03-01 03:48:08 +00:00
parent 63ae8290f5
commit 72ea054dc1
5 changed files with 29 additions and 7 deletions
+2 -2
View File
@@ -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;