Process Hacker
wndtree.c File Reference
#include "wndexp.h"
#include "resource.h"

Go to the source code of this file.

Macros

#define SORT_FUNCTION(Column)   WepWindowTreeNewCompare##Column
 
#define BEGIN_SORT_FUNCTION(Column)
 
#define END_SORT_FUNCTION
 

Functions

BOOLEAN WepWindowNodeHashtableCompareFunction (_In_ PVOID Entry1, _In_ PVOID Entry2)
 
ULONG WepWindowNodeHashtableHashFunction (_In_ PVOID Entry)
 
VOID WepDestroyWindowNode (_In_ PWE_WINDOW_NODE WindowNode)
 
BOOLEAN NTAPI WepWindowTreeNewCallback (_In_ HWND hwnd, _In_ PH_TREENEW_MESSAGE Message, _In_opt_ PVOID Parameter1, _In_opt_ PVOID Parameter2, _In_opt_ PVOID Context)
 
VOID WeInitializeWindowTree (_In_ HWND ParentWindowHandle, _In_ HWND TreeNewHandle, _Out_ PWE_WINDOW_TREE_CONTEXT Context)
 
VOID WeDeleteWindowTree (_In_ PWE_WINDOW_TREE_CONTEXT Context)
 
PWE_WINDOW_NODE WeAddWindowNode (_Inout_ PWE_WINDOW_TREE_CONTEXT Context)
 
PWE_WINDOW_NODE WeFindWindowNode (_In_ PWE_WINDOW_TREE_CONTEXT Context, _In_ HWND WindowHandle)
 
VOID WeRemoveWindowNode (_In_ PWE_WINDOW_TREE_CONTEXT Context, _In_ PWE_WINDOW_NODE WindowNode)
 
 BEGIN_SORT_FUNCTION (Class)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (Handle)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (Text)
 
END_SORT_FUNCTION BEGIN_SORT_FUNCTION (Thread)
 
VOID WeClearWindowTree (_In_ PWE_WINDOW_TREE_CONTEXT Context)
 
PWE_WINDOW_NODE WeGetSelectedWindowNode (_In_ PWE_WINDOW_TREE_CONTEXT Context)
 
VOID WeGetSelectedWindowNodes (_In_ PWE_WINDOW_TREE_CONTEXT Context, _Out_ PWE_WINDOW_NODE **Windows, _Out_ PULONG NumberOfWindows)
 

Macro Definition Documentation

#define BEGIN_SORT_FUNCTION (   Column)
Value:
static int __cdecl WepWindowTreeNewCompare##Column( \
_In_ void *_context, \
_In_ const void *_elem1, \
_In_ const void *_elem2 \
) \
{ \
PWE_WINDOW_NODE node1 = *(PWE_WINDOW_NODE *)_elem1; \
PWE_WINDOW_NODE node2 = *(PWE_WINDOW_NODE *)_elem2; \
int sortResult = 0;

Definition at line 204 of file wndtree.c.

#define END_SORT_FUNCTION
Value:
return PhModifySort(sortResult, ((PWE_WINDOW_TREE_CONTEXT)_context)->TreeNewSortOrder); \
}

Definition at line 214 of file wndtree.c.

#define SORT_FUNCTION (   Column)    WepWindowTreeNewCompare##Column

Definition at line 202 of file wndtree.c.

Function Documentation

BEGIN_SORT_FUNCTION ( Class  )

Definition at line 218 of file wndtree.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( Handle  )

Definition at line 224 of file wndtree.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( Text  )

Definition at line 230 of file wndtree.c.

END_SORT_FUNCTION BEGIN_SORT_FUNCTION ( Thread  )

Definition at line 236 of file wndtree.c.

PWE_WINDOW_NODE WeAddWindowNode ( _Inout_ PWE_WINDOW_TREE_CONTEXT  Context)

Definition at line 124 of file wndtree.c.

VOID WeClearWindowTree ( _In_ PWE_WINDOW_TREE_CONTEXT  Context)

Definition at line 404 of file wndtree.c.

VOID WeDeleteWindowTree ( _In_ PWE_WINDOW_TREE_CONTEXT  Context)

Definition at line 87 of file wndtree.c.

PWE_WINDOW_NODE WeFindWindowNode ( _In_ PWE_WINDOW_TREE_CONTEXT  Context,
_In_ HWND  WindowHandle 
)

Definition at line 148 of file wndtree.c.

PWE_WINDOW_NODE WeGetSelectedWindowNode ( _In_ PWE_WINDOW_TREE_CONTEXT  Context)

Definition at line 418 of file wndtree.c.

VOID WeGetSelectedWindowNodes ( _In_ PWE_WINDOW_TREE_CONTEXT  Context,
_Out_ PWE_WINDOW_NODE **  Windows,
_Out_ PULONG  NumberOfWindows 
)

Definition at line 436 of file wndtree.c.

VOID WeInitializeWindowTree ( _In_ HWND  ParentWindowHandle,
_In_ HWND  TreeNewHandle,
_Out_ PWE_WINDOW_TREE_CONTEXT  Context 
)

Definition at line 47 of file wndtree.c.

VOID WepDestroyWindowNode ( _In_ PWE_WINDOW_NODE  WindowNode)

Definition at line 189 of file wndtree.c.

BOOLEAN WepWindowNodeHashtableCompareFunction ( _In_ PVOID  Entry1,
_In_ PVOID  Entry2 
)

Definition at line 106 of file wndtree.c.

ULONG WepWindowNodeHashtableHashFunction ( _In_ PVOID  Entry)

Definition at line 117 of file wndtree.c.

END_SORT_FUNCTION BOOLEAN NTAPI WepWindowTreeNewCallback ( _In_ HWND  hwnd,
_In_ PH_TREENEW_MESSAGE  Message,
_In_opt_ PVOID  Parameter1,
_In_opt_ PVOID  Parameter2,
_In_opt_ PVOID  Context 
)

Definition at line 245 of file wndtree.c.

VOID WeRemoveWindowNode ( _In_ PWE_WINDOW_TREE_CONTEXT  Context,
_In_ PWE_WINDOW_NODE  WindowNode 
)

Definition at line 170 of file wndtree.c.