mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 10:12:58 +00:00
gdihv: add a possibility to view all handles
svn path=/trunk/; revision=40216
This commit is contained in:
parent
e6b79399bb
commit
b023f69f76
2 changed files with 13 additions and 3 deletions
|
@ -83,9 +83,10 @@ HandleList_Update(HWND hHandleListCtrl, HANDLE ProcessId)
|
||||||
{
|
{
|
||||||
pEntry = &GdiHandleTable[i];
|
pEntry = &GdiHandleTable[i];
|
||||||
if ( ((ProcessId != (HANDLE)1) && ((pEntry->Type & GDI_HANDLE_BASETYPE_MASK) != 0)) ||
|
if ( ((ProcessId != (HANDLE)1) && ((pEntry->Type & GDI_HANDLE_BASETYPE_MASK) != 0)) ||
|
||||||
((ProcessId == (HANDLE)1) && ((pEntry->Type & GDI_HANDLE_BASETYPE_MASK) == 0)) )
|
((ProcessId == (HANDLE)1) && ((pEntry->Type & GDI_HANDLE_BASETYPE_MASK) == 0)) ||
|
||||||
|
(ProcessId == (HANDLE)2) )
|
||||||
{
|
{
|
||||||
if (ProcessId == (HANDLE)1 ||
|
if (ProcessId == (HANDLE)1 || ProcessId == (HANDLE)2 ||
|
||||||
((LONG)ProcessId & 0xfffc) == ((ULONG)pEntry->ProcessId & 0xfffc))
|
((LONG)ProcessId & 0xfffc) == ((ULONG)pEntry->ProcessId & 0xfffc))
|
||||||
{
|
{
|
||||||
handle = GDI_HANDLE_CREATE(i, pEntry->Type);
|
handle = GDI_HANDLE_CREATE(i, pEntry->Type);
|
||||||
|
|
|
@ -70,7 +70,16 @@ ProcessList_Update(HWND hListCtrl)
|
||||||
item.pszText = L"<deleted>";
|
item.pszText = L"<deleted>";
|
||||||
(void)ListView_InsertItem(hListCtrl, &item);
|
(void)ListView_InsertItem(hListCtrl, &item);
|
||||||
item.pszText = strText;
|
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);
|
ListView_SetItemText(hListCtrl, 1, 1, strText);
|
||||||
|
|
||||||
if (!EnumProcesses(ProcessIds, sizeof(ProcessIds), &BytesReturned ))
|
if (!EnumProcesses(ProcessIds, sizeof(ProcessIds), &BytesReturned ))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue