Process Hacker
main.c File Reference
#include <phdk.h>
#include <windowsx.h>
#include "extnoti.h"
#include "resource.h"
#include "gntp-send/growl.h"

Go to the source code of this file.

Functions

VOID NTAPI LoadCallback (_In_opt_ PVOID Parameter, _In_opt_ PVOID Context)
 
VOID NTAPI ShowOptionsCallback (_In_opt_ PVOID Parameter, _In_opt_ PVOID Context)
 
VOID NTAPI NotifyEventCallback (_In_opt_ PVOID Parameter, _In_opt_ PVOID Context)
 
VOID RegisterGrowl (_In_ BOOLEAN Force)
 
VOID NotifyGrowl (_In_ PPH_PLUGIN_NOTIFY_EVENT NotifyEvent)
 
NTSTATUS NTAPI RegisterGrowlCallback (_In_ PVOID Parameter)
 
INT_PTR CALLBACK ProcessesDlgProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
INT_PTR CALLBACK ServicesDlgProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
INT_PTR CALLBACK LoggingDlgProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
INT_PTR CALLBACK GrowlDlgProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
LOGICAL DllMain (_In_ HINSTANCE Instance, _In_ ULONG Reason, _Reserved_ PVOID Reserved)
 
VOID FreeFilterEntry (_In_ PFILTER_ENTRY Entry)
 
VOID ClearFilterList (_Inout_ PPH_LIST FilterList)
 
VOID CopyFilterList (_Inout_ PPH_LIST Destination, _In_ PPH_LIST Source)
 
VOID LoadFilterList (_Inout_ PPH_LIST FilterList, _In_ PPH_STRING String)
 
PPH_STRING SaveFilterList (_Inout_ PPH_LIST FilterList)
 
BOOLEAN MatchFilterList (_In_ PPH_LIST FilterList, _In_ PPH_STRING String, _Out_ FILTER_TYPE *FilterType)
 
PPH_STRING FormatFilterEntry (_In_ PFILTER_ENTRY Entry)
 
VOID AddEntriesToListBox (_In_ HWND ListBox, _In_ PPH_LIST FilterList)
 
VOID FixControlStates (_In_ HWND hwndDlg, _In_ HWND ListBox)
 
INT_PTR HandleCommonMessages (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam, _In_ HWND ListBox, _In_ PPH_LIST FilterList)
 

Variables

PPH_PLUGIN PluginInstance
 
PH_CALLBACK_REGISTRATION PluginLoadCallbackRegistration
 
PH_CALLBACK_REGISTRATION PluginShowOptionsCallbackRegistration
 
PH_CALLBACK_REGISTRATION NotifyEventCallbackRegistration
 
PPH_LIST ProcessFilterList
 
PPH_LIST ServiceFilterList
 
PSTR GrowlNotifications []
 
PPH_LIST EditingProcessFilterList
 
PPH_LIST EditingServiceFilterList
 

Function Documentation

VOID AddEntriesToListBox ( _In_ HWND  ListBox,
_In_ PPH_LIST  FilterList 
)

Definition at line 624 of file main.c.

VOID ClearFilterList ( _Inout_ PPH_LIST  FilterList)

Definition at line 174 of file main.c.

VOID CopyFilterList ( _Inout_ PPH_LIST  Destination,
_In_ PPH_LIST  Source 
)

Definition at line 186 of file main.c.

LOGICAL DllMain ( _In_ HINSTANCE  Instance,
_In_ ULONG  Reason,
_Reserved_ PVOID  Reserved 
)

Definition at line 102 of file main.c.

VOID FixControlStates ( _In_ HWND  hwndDlg,
_In_ HWND  ListBox 
)

Definition at line 679 of file main.c.

PPH_STRING FormatFilterEntry ( _In_ PFILTER_ENTRY  Entry)

Definition at line 617 of file main.c.

VOID FreeFilterEntry ( _In_ PFILTER_ENTRY  Entry)

Definition at line 166 of file main.c.

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

Definition at line 1089 of file main.c.

INT_PTR HandleCommonMessages ( _In_ HWND  hwndDlg,
_In_ UINT  uMsg,
_In_ WPARAM  wParam,
_In_ LPARAM  lParam,
_In_ HWND  ListBox,
_In_ PPH_LIST  FilterList 
)

Definition at line 695 of file main.c.

VOID NTAPI LoadCallback ( _In_opt_ PVOID  Parameter,
_In_opt_ PVOID  Context 
)
VOID LoadFilterList ( _Inout_ PPH_LIST  FilterList,
_In_ PPH_STRING  String 
)

Definition at line 207 of file main.c.

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

Definition at line 1020 of file main.c.

BOOLEAN MatchFilterList ( _In_ PPH_LIST  FilterList,
_In_ PPH_STRING  String,
_Out_ FILTER_TYPE FilterType 
)

Definition at line 396 of file main.c.

VOID NTAPI NotifyEventCallback ( _In_opt_ PVOID  Parameter,
_In_opt_ PVOID  Context 
)

Definition at line 430 of file main.c.

VOID NotifyGrowl ( _In_ PPH_PLUGIN_NOTIFY_EVENT  NotifyEvent)

Definition at line 489 of file main.c.

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

Definition at line 890 of file main.c.

VOID RegisterGrowl ( _In_ BOOLEAN  Force)

Definition at line 475 of file main.c.

NTSTATUS NTAPI RegisterGrowlCallback ( _In_ PVOID  Parameter)

Definition at line 608 of file main.c.

PPH_STRING SaveFilterList ( _Inout_ PPH_LIST  FilterList)

Definition at line 274 of file main.c.

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

Definition at line 956 of file main.c.

VOID NTAPI ShowOptionsCallback ( _In_opt_ PVOID  Parameter,
_In_opt_ PVOID  Context 
)

Definition at line 285 of file main.c.

Variable Documentation

PPH_LIST EditingProcessFilterList

Definition at line 642 of file main.c.

PPH_LIST EditingServiceFilterList

Definition at line 643 of file main.c.

PSTR GrowlNotifications[]
Initial value:
=
{
"Process Created",
"Process Terminated",
"Service Created",
"Service Deleted",
"Service Started",
"Service Stopped"
}

Definition at line 92 of file main.c.

PH_CALLBACK_REGISTRATION NotifyEventCallbackRegistration

Definition at line 87 of file main.c.

PPH_PLUGIN PluginInstance

Definition at line 84 of file main.c.

PH_CALLBACK_REGISTRATION PluginLoadCallbackRegistration

Definition at line 85 of file main.c.

PH_CALLBACK_REGISTRATION PluginShowOptionsCallbackRegistration

Definition at line 86 of file main.c.

PPH_LIST ProcessFilterList

Definition at line 89 of file main.c.

PPH_LIST ServiceFilterList

Definition at line 90 of file main.c.