Author: tkreuzer
Date: Wed Mar 25 06:48:51 2009
New Revision: 40216
URL:
http://svn.reactos.org/svn/reactos?rev=40216&view=rev
Log:
gdihv: add a possibility to view all handles
Modified:
trunk/rosapps/applications/devutils/gdihv/handlelist.c
trunk/rosapps/applications/devutils/gdihv/proclist.c
Modified: trunk/rosapps/applications/devutils/gdihv/handlelist.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rosapps/applications/devutils/gdih…
==============================================================================
--- trunk/rosapps/applications/devutils/gdihv/handlelist.c [iso-8859-1] (original)
+++ trunk/rosapps/applications/devutils/gdihv/handlelist.c [iso-8859-1] Wed Mar 25
06:48:51 2009
@@ -83,9 +83,10 @@
{
pEntry = &GdiHandleTable[i];
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))
{
handle = GDI_HANDLE_CREATE(i, pEntry->Type);
Modified: trunk/rosapps/applications/devutils/gdihv/proclist.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rosapps/applications/devutils/gdih…
==============================================================================
--- trunk/rosapps/applications/devutils/gdihv/proclist.c [iso-8859-1] (original)
+++ trunk/rosapps/applications/devutils/gdihv/proclist.c [iso-8859-1] Wed Mar 25 06:48:51
2009
@@ -70,7 +70,16 @@
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 ))