gdihv: add a possibility to view all handles

svn path=/trunk/; revision=40216
This commit is contained in:
Timo Kreuzer 2009-03-25 03:48:51 +00:00
parent e6b79399bb
commit b023f69f76
2 changed files with 13 additions and 3 deletions

View file

@ -70,7 +70,16 @@ ProcessList_Update(HWND hListCtrl)
item.pszText = L"<deleted>";
(void)ListView_InsertItem(hListCtrl, &item);
item.pszText = strText;
wsprintf(strText, L"%#08x",1);
wsprintf(strText, L"%#08x", 1);
ListView_SetItemText(hListCtrl, 1, 1, strText);
/* Insert "all" */
item.iItem = 2;
item.lParam = 2;
item.pszText = L"<all>";
(void)ListView_InsertItem(hListCtrl, &item);
item.pszText = strText;
wsprintf(strText, L"%#08x", 2);
ListView_SetItemText(hListCtrl, 1, 1, strText);
if (!EnumProcesses(ProcessIds, sizeof(ProcessIds), &BytesReturned ))