Process Hacker
toolstatus.h File Reference
#include <phdk.h>
#include <phappresource.h>
#include <windowsx.h>
#include <Wincodec.h>
#include <toolstatusintf.h>
#include "resource.h"

Go to the source code of this file.

Data Structures

struct  _EDIT_CONTEXT
 

Macros

#define CINTERFACE
 
#define COBJMACROS
 
#define INITGUID
 
#define PLUGIN_NAME   TOOLSTATUS_PLUGIN_NAME
 
#define SETTING_NAME_ENABLE_TOOLBAR   (PLUGIN_NAME L".EnableToolBar")
 
#define SETTING_NAME_ENABLE_SEARCHBOX   (PLUGIN_NAME L".EnableSearchBox")
 
#define SETTING_NAME_ENABLE_STATUSBAR   (PLUGIN_NAME L".EnableStatusBar")
 
#define SETTING_NAME_ENABLE_RESOLVEGHOSTWINDOWS   (PLUGIN_NAME L".ResolveGhostWindows")
 
#define SETTING_NAME_ENABLE_STATUSMASK   (PLUGIN_NAME L".StatusMask")
 
#define SETTING_NAME_TOOLBARDISPLAYSTYLE   (PLUGIN_NAME L".ToolbarDisplayStyle")
 
#define SETTING_NAME_SEARCHBOXDISPLAYMODE   (PLUGIN_NAME L".SearchBoxDisplayMode")
 
#define MAX_DEFAULT_TOOLBAR_ITEMS   9
 
#define TIDC_FINDWINDOW   (WM_APP + 1)
 
#define TIDC_FINDWINDOWTHREAD   (WM_APP + 2)
 
#define TIDC_FINDWINDOWKILL   (WM_APP + 3)
 
#define ID_SEARCH_CLEAR   (WM_APP + 4)
 
#define STATUS_COUNT   12
 
#define STATUS_MINIMUM   0x1
 
#define STATUS_CPUUSAGE   0x1
 
#define STATUS_COMMIT   0x2
 
#define STATUS_PHYSICAL   0x4
 
#define STATUS_NUMBEROFPROCESSES   0x8
 
#define STATUS_NUMBEROFTHREADS   0x10
 
#define STATUS_NUMBEROFHANDLES   0x20
 
#define STATUS_IOREADOTHER   0x40
 
#define STATUS_IOWRITE   0x80
 
#define STATUS_MAXCPUPROCESS   0x100
 
#define STATUS_MAXIOPROCESS   0x200
 
#define STATUS_VISIBLEITEMS   0x400
 
#define STATUS_SELECTEDITEMS   0x800
 
#define STATUS_MAXIMUM   0x1000
 

Typedefs

typedef enum _TOOLBAR_DISPLAY_STYLE TOOLBAR_DISPLAY_STYLE
 
typedef enum
_SEARCHBOX_DISPLAY_MODE 
SEARCHBOX_DISPLAY_MODE
 
typedef enum _REBAR_BAND_ID REBAR_BAND_ID
 
typedef enum
_REBAR_DISPLAY_LOCATION 
REBAR_DISPLAY_LOCATION
 
typedef struct _EDIT_CONTEXT EDIT_CONTEXT
 
typedef struct _EDIT_CONTEXTPEDIT_CONTEXT
 

Enumerations

enum  _TOOLBAR_DISPLAY_STYLE { ToolbarDisplayImageOnly, ToolbarDisplaySelectiveText, ToolbarDisplayAllText }
 
enum  _SEARCHBOX_DISPLAY_MODE { SearchBoxDisplayAlwaysShow = 0, SearchBoxDisplayHideInactive = 1 }
 
enum  _REBAR_BAND_ID { BandID_ToolBar = 0, BandID_SearchBox = 1 }
 
enum  _REBAR_DISPLAY_LOCATION { RebarLocationTop = 0, RebarLocationLeft = 1, RebarLocationBottom = 2, RebarLocationRight = 3 }
 

Functions

PTOOLSTATUS_TAB_INFO FindTabInfo (_In_ INT TabIndex)
 
VOID UpdateStatusBar (VOID)
 
VOID ShowStatusMenu (_In_ PPOINT Point)
 
VOID RebarBandInsert (_In_ UINT BandID, _In_ HWND HwndChild, _In_ UINT cyMinChild, _In_ UINT cxMinChild)
 
VOID RebarBandRemove (_In_ UINT BandID)
 
BOOLEAN RebarBandExists (_In_ UINT BandID)
 
VOID LoadToolbarSettings (VOID)
 
VOID ResetToolbarSettings (VOID)
 
PWSTR ToolbarGetText (_In_ INT CommandID)
 
HWND GetCurrentTreeNewHandle (VOID)
 
INT_PTR CALLBACK OptionsDlgProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
BOOLEAN WordMatchStringRef (_In_ PPH_STRINGREF Text)
 
BOOLEAN ProcessTreeFilterCallback (_In_ PPH_TREENEW_NODE Node, _In_opt_ PVOID Context)
 
BOOLEAN ServiceTreeFilterCallback (_In_ PPH_TREENEW_NODE Node, _In_opt_ PVOID Context)
 
BOOLEAN NetworkTreeFilterCallback (_In_ PPH_TREENEW_NODE Node, _In_opt_ PVOID Context)
 
HWND CreateSearchControl (_In_ UINT CmdId)
 
HBITMAP LoadImageFromResources (_In_ UINT Width, _In_ UINT Height, _In_ PCWSTR Name)
 

Variables

HWND ProcessTreeNewHandle
 
HWND ServiceTreeNewHandle
 
HWND NetworkTreeNewHandle
 
INT SelectedTabIndex
 
BOOLEAN EnableToolBar
 
BOOLEAN EnableSearchBox
 
BOOLEAN EnableStatusBar
 
BOOLEAN ToolbarInitialized
 
TOOLBAR_DISPLAY_STYLE DisplayStyle
 
SEARCHBOX_DISPLAY_MODE SearchBoxDisplayMode
 
REBAR_DISPLAY_LOCATION RebarDisplayLocation
 
ULONG StatusMask
 
ULONG ProcessesUpdatedCount
 
HWND RebarHandle
 
HWND ToolBarHandle
 
HWND SearchboxHandle
 
HWND StatusBarHandle
 
HACCEL AcceleratorTable
 
PPH_STRING SearchboxText
 
HIMAGELIST ToolBarImageList
 
TBBUTTON ToolbarButtons [10]
 
TBSAVEPARAMSW ToolbarSaveParams
 
PPH_PLUGIN PluginInstance
 
PPH_TN_FILTER_ENTRY ProcessTreeFilterEntry
 
PPH_TN_FILTER_ENTRY ServiceTreeFilterEntry
 
PPH_TN_FILTER_ENTRY NetworkTreeFilterEntry
 

Macro Definition Documentation

#define CINTERFACE

Definition at line 29 of file toolstatus.h.

#define COBJMACROS

Definition at line 30 of file toolstatus.h.

#define ID_SEARCH_CLEAR   (WM_APP + 4)

Definition at line 54 of file toolstatus.h.

#define INITGUID

Definition at line 31 of file toolstatus.h.

#define MAX_DEFAULT_TOOLBAR_ITEMS   9

Definition at line 49 of file toolstatus.h.

#define PLUGIN_NAME   TOOLSTATUS_PLUGIN_NAME

Definition at line 40 of file toolstatus.h.

#define SETTING_NAME_ENABLE_RESOLVEGHOSTWINDOWS   (PLUGIN_NAME L".ResolveGhostWindows")

Definition at line 44 of file toolstatus.h.

#define SETTING_NAME_ENABLE_SEARCHBOX   (PLUGIN_NAME L".EnableSearchBox")

Definition at line 42 of file toolstatus.h.

#define SETTING_NAME_ENABLE_STATUSBAR   (PLUGIN_NAME L".EnableStatusBar")

Definition at line 43 of file toolstatus.h.

#define SETTING_NAME_ENABLE_STATUSMASK   (PLUGIN_NAME L".StatusMask")

Definition at line 45 of file toolstatus.h.

#define SETTING_NAME_ENABLE_TOOLBAR   (PLUGIN_NAME L".EnableToolBar")

Definition at line 41 of file toolstatus.h.

#define SETTING_NAME_SEARCHBOXDISPLAYMODE   (PLUGIN_NAME L".SearchBoxDisplayMode")

Definition at line 47 of file toolstatus.h.

#define SETTING_NAME_TOOLBARDISPLAYSTYLE   (PLUGIN_NAME L".ToolbarDisplayStyle")

Definition at line 46 of file toolstatus.h.

#define STATUS_COMMIT   0x2

Definition at line 59 of file toolstatus.h.

#define STATUS_COUNT   12

Definition at line 56 of file toolstatus.h.

#define STATUS_CPUUSAGE   0x1

Definition at line 58 of file toolstatus.h.

#define STATUS_IOREADOTHER   0x40

Definition at line 64 of file toolstatus.h.

#define STATUS_IOWRITE   0x80

Definition at line 65 of file toolstatus.h.

#define STATUS_MAXCPUPROCESS   0x100

Definition at line 66 of file toolstatus.h.

#define STATUS_MAXIMUM   0x1000

Definition at line 70 of file toolstatus.h.

#define STATUS_MAXIOPROCESS   0x200

Definition at line 67 of file toolstatus.h.

#define STATUS_MINIMUM   0x1

Definition at line 57 of file toolstatus.h.

#define STATUS_NUMBEROFHANDLES   0x20

Definition at line 63 of file toolstatus.h.

#define STATUS_NUMBEROFPROCESSES   0x8

Definition at line 61 of file toolstatus.h.

#define STATUS_NUMBEROFTHREADS   0x10

Definition at line 62 of file toolstatus.h.

#define STATUS_PHYSICAL   0x4

Definition at line 60 of file toolstatus.h.

#define STATUS_SELECTEDITEMS   0x800

Definition at line 69 of file toolstatus.h.

#define STATUS_VISIBLEITEMS   0x400

Definition at line 68 of file toolstatus.h.

#define TIDC_FINDWINDOW   (WM_APP + 1)

Definition at line 51 of file toolstatus.h.

#define TIDC_FINDWINDOWKILL   (WM_APP + 3)

Definition at line 53 of file toolstatus.h.

#define TIDC_FINDWINDOWTHREAD   (WM_APP + 2)

Definition at line 52 of file toolstatus.h.

Typedef Documentation

typedef struct _EDIT_CONTEXT EDIT_CONTEXT
typedef struct _EDIT_CONTEXT * PEDIT_CONTEXT

Enumeration Type Documentation

Enumerator:
BandID_ToolBar 
BandID_SearchBox 

Definition at line 86 of file toolstatus.h.

Enumerator:
RebarLocationTop 
RebarLocationLeft 
RebarLocationBottom 
RebarLocationRight 

Definition at line 92 of file toolstatus.h.

Enumerator:
SearchBoxDisplayAlwaysShow 
SearchBoxDisplayHideInactive 

Definition at line 79 of file toolstatus.h.

Enumerator:
ToolbarDisplayImageOnly 
ToolbarDisplaySelectiveText 
ToolbarDisplayAllText 

Definition at line 72 of file toolstatus.h.

Function Documentation

HWND CreateSearchControl ( _In_ UINT  CmdId)

Definition at line 569 of file searchbox.c.

PTOOLSTATUS_TAB_INFO FindTabInfo ( _In_ INT  TabIndex)

Definition at line 143 of file main.c.

HWND GetCurrentTreeNewHandle ( VOID  )

Definition at line 155 of file main.c.

HBITMAP LoadImageFromResources ( _In_ UINT  Width,
_In_ UINT  Height,
_In_ PCWSTR  Name 
)

Definition at line 422 of file searchbox.c.

VOID LoadToolbarSettings ( VOID  )

Definition at line 359 of file toolbar.c.

BOOLEAN NetworkTreeFilterCallback ( _In_ PPH_TREENEW_NODE  Node,
_In_opt_ PVOID  Context 
)

Definition at line 396 of file filter.c.

INT_PTR CALLBACK OptionsDlgProc ( _In_ HWND  hwndDlg,
_In_ UINT  uMsg,
_In_ WPARAM  wParam,
_In_ LPARAM  lParam 
)

Definition at line 47 of file options.c.

BOOLEAN ProcessTreeFilterCallback ( _In_ PPH_TREENEW_NODE  Node,
_In_opt_ PVOID  Context 
)

Definition at line 60 of file filter.c.

BOOLEAN RebarBandExists ( _In_ UINT  BandID)

Definition at line 88 of file toolbar.c.

VOID RebarBandInsert ( _In_ UINT  BandID,
_In_ HWND  HwndChild,
_In_ UINT  cyMinChild,
_In_ UINT  cxMinChild 
)

Definition at line 52 of file toolbar.c.

VOID RebarBandRemove ( _In_ UINT  BandID)

Definition at line 76 of file toolbar.c.

VOID ResetToolbarSettings ( VOID  )

Definition at line 462 of file toolbar.c.

BOOLEAN ServiceTreeFilterCallback ( _In_ PPH_TREENEW_NODE  Node,
_In_opt_ PVOID  Context 
)

Definition at line 349 of file filter.c.

VOID ShowStatusMenu ( _In_ PPOINT  Point)

Definition at line 31 of file statusbar.c.

PWSTR ToolbarGetText ( _In_ INT  CommandID)

Definition at line 476 of file toolbar.c.

VOID UpdateStatusBar ( VOID  )

Definition at line 157 of file statusbar.c.

BOOLEAN WordMatchStringRef ( _In_ PPH_STRINGREF  Text)

Definition at line 27 of file filter.c.

Variable Documentation

HACCEL AcceleratorTable

Definition at line 52 of file main.c.

TOOLBAR_DISPLAY_STYLE DisplayStyle

Definition at line 46 of file main.c.

BOOLEAN EnableSearchBox

Definition at line 44 of file main.c.

BOOLEAN EnableStatusBar

Definition at line 45 of file main.c.

BOOLEAN EnableToolBar

Definition at line 43 of file main.c.

PPH_TN_FILTER_ENTRY NetworkTreeFilterEntry

Definition at line 58 of file main.c.

HWND NetworkTreeNewHandle

Definition at line 139 of file main.c.

PPH_PLUGIN PluginInstance

Definition at line 113 of file main.c.

ULONG ProcessesUpdatedCount

Definition at line 28 of file statusbar.c.

PPH_TN_FILTER_ENTRY ProcessTreeFilterEntry

Definition at line 56 of file main.c.

HWND ProcessTreeNewHandle

Definition at line 138 of file main.c.

REBAR_DISPLAY_LOCATION RebarDisplayLocation

Definition at line 48 of file main.c.

HWND RebarHandle

Definition at line 49 of file main.c.

SEARCHBOX_DISPLAY_MODE SearchBoxDisplayMode

Definition at line 47 of file main.c.

HWND SearchboxHandle

Definition at line 51 of file main.c.

PPH_STRING SearchboxText

Definition at line 53 of file main.c.

INT SelectedTabIndex

Definition at line 42 of file main.c.

PPH_TN_FILTER_ENTRY ServiceTreeFilterEntry

Definition at line 57 of file main.c.

HWND ServiceTreeNewHandle

Definition at line 40 of file main.c.

HWND StatusBarHandle

Definition at line 26 of file statusbar.c.

ULONG StatusMask

Definition at line 27 of file statusbar.c.

TBBUTTON ToolbarButtons[10]

Definition at line 28 of file toolbar.c.

HWND ToolBarHandle

Definition at line 50 of file main.c.

HIMAGELIST ToolBarImageList

Definition at line 26 of file toolbar.c.

BOOLEAN ToolbarInitialized

Definition at line 25 of file toolbar.c.

TBSAVEPARAMSW ToolbarSaveParams

Definition at line 45 of file toolbar.c.