mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 16:52:59 +00:00
[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 svn path=/trunk/; revision=51498
This commit is contained in:
parent
5197d7eb95
commit
8a518bb78d
2 changed files with 5 additions and 1 deletions
|
@ -50,7 +50,7 @@ void ProcessPage_OnEndProcess(void)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!TerminateProcess(hProcess, 0))
|
if (!TerminateProcess(hProcess, 1))
|
||||||
{
|
{
|
||||||
GetLastErrorText(strErrorText, 260);
|
GetLastErrorText(strErrorText, 260);
|
||||||
LoadStringW(hInst, IDS_MSG_UNABLETERMINATEPRO, szTitle, 256);
|
LoadStringW(hInst, IDS_MSG_UNABLETERMINATEPRO, szTitle, 256);
|
||||||
|
|
|
@ -435,6 +435,8 @@ void UpdateProcesses()
|
||||||
LV_ITEM item;
|
LV_ITEM item;
|
||||||
LPPROCESS_PAGE_LIST_ITEM pData;
|
LPPROCESS_PAGE_LIST_ITEM pData;
|
||||||
|
|
||||||
|
SendMessage(hProcessPageListCtrl, WM_SETREDRAW, FALSE, 0);
|
||||||
|
|
||||||
/* Remove old processes */
|
/* Remove old processes */
|
||||||
for (i = 0; i < ListView_GetItemCount(hProcessPageListCtrl); i++)
|
for (i = 0; i < ListView_GetItemCount(hProcessPageListCtrl); i++)
|
||||||
{
|
{
|
||||||
|
@ -464,6 +466,8 @@ void UpdateProcesses()
|
||||||
{
|
{
|
||||||
(void)ListView_SortItems(hProcessPageListCtrl, ProcessPageCompareFunc, NULL);
|
(void)ListView_SortItems(hProcessPageListCtrl, ProcessPageCompareFunc, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SendMessage(hProcessPageListCtrl, WM_SETREDRAW, TRUE, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL ProcessRunning(ULONG ProcessId)
|
BOOL ProcessRunning(ULONG ProcessId)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue