Author: gadamopoulos
Date: Fri Apr 29 21:49:37 2011
New Revision: 51498
URL:
http://svn.reactos.org/svn/reactos?rev=51498&view=rev
Log:
[taskmgr]
- When terminating an application use 1 as exit code. This is used by Task Manager in
windows. It also prevents explorer from restarting in windows
- Disable redrawing the list of processes while the list is updated. Fixes flicker in
windows
Modified:
trunk/reactos/base/applications/taskmgr/endproc.c
trunk/reactos/base/applications/taskmgr/procpage.c
Modified: trunk/reactos/base/applications/taskmgr/endproc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/taskmgr/…
==============================================================================
--- trunk/reactos/base/applications/taskmgr/endproc.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/taskmgr/endproc.c [iso-8859-1] Fri Apr 29 21:49:37
2011
@@ -50,7 +50,7 @@
return;
}
- if (!TerminateProcess(hProcess, 0))
+ if (!TerminateProcess(hProcess, 1))
{
GetLastErrorText(strErrorText, 260);
LoadStringW(hInst, IDS_MSG_UNABLETERMINATEPRO, szTitle, 256);
Modified: trunk/reactos/base/applications/taskmgr/procpage.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/taskmgr/…
==============================================================================
--- trunk/reactos/base/applications/taskmgr/procpage.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/taskmgr/procpage.c [iso-8859-1] Fri Apr 29 21:49:37
2011
@@ -435,6 +435,8 @@
LV_ITEM item;
LPPROCESS_PAGE_LIST_ITEM pData;
+ SendMessage(hProcessPageListCtrl, WM_SETREDRAW, FALSE, 0);
+
/* Remove old processes */
for (i = 0; i < ListView_GetItemCount(hProcessPageListCtrl); i++)
{
@@ -464,6 +466,8 @@
{
(void)ListView_SortItems(hProcessPageListCtrl, ProcessPageCompareFunc, NULL);
}
+
+ SendMessage(hProcessPageListCtrl, WM_SETREDRAW, TRUE, 0);
}
BOOL ProcessRunning(ULONG ProcessId)