Process Hacker
mainwnd.c File Reference
#include <phapp.h>
#include <kphuser.h>
#include <settings.h>
#include <emenu.h>
#include <verify.h>
#include <phsvccl.h>
#include <phplug.h>
#include <cpysave.h>
#include <notifico.h>
#include <memsrch.h>
#include <symprv.h>
#include <sysinfo.h>
#include <miniinfo.h>
#include <mainwndp.h>
#include <windowsx.h>
#include <shlobj.h>
#include <winsta.h>
#include <iphlpapi.h>

Go to the source code of this file.

Macros

#define PH_MAINWND_PRIVATE
 
#define RUNAS_MODE_ADMIN   1
 
#define RUNAS_MODE_LIMITED   2
 

Typedefs

typedef HRESULT(WINAPI * _LoadIconMetric )(_In_ HINSTANCE hinst, _In_ PCWSTR pszName, _In_ int lims, _Out_ HICON *phico)
 

Functions

BOOLEAN PhMainWndInitialization (_In_ INT ShowCommand)
 
LRESULT CALLBACK PhMwpWndProc (_In_ HWND hWnd, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
BOOLEAN PhMwpInitializeWindowClass (VOID)
 
VOID PhMwpInitializeProviders (VOID)
 
VOID PhMwpApplyUpdateInterval (_In_ ULONG Interval)
 
VOID PhMwpInitializeControls (VOID)
 
NTSTATUS PhMwpDelayedLoadFunction (_In_ PVOID Parameter)
 
PPH_STRING PhMwpFindDbghelpPath (VOID)
 
VOID PhMwpOnDestroy (VOID)
 
VOID PhMwpOnEndSession (VOID)
 
VOID PhMwpOnSettingChange (VOID)
 
VOID PhMwpOnCommand (_In_ ULONG Id)
 
VOID PhMwpOnShowWindow (_In_ BOOLEAN Showing, _In_ ULONG State)
 
BOOLEAN PhMwpOnSysCommand (_In_ ULONG Type, _In_ LONG CursorScreenX, _In_ LONG CursorScreenY)
 
VOID PhMwpOnMenuCommand (_In_ ULONG Index, _In_ HMENU Menu)
 
VOID PhMwpOnInitMenuPopup (_In_ HMENU Menu, _In_ ULONG Index, _In_ BOOLEAN IsWindowMenu)
 
VOID PhMwpOnSize (VOID)
 
VOID PhMwpOnSizing (_In_ ULONG Edge, _In_ PRECT DragRectangle)
 
VOID PhMwpOnSetFocus (VOID)
 
VOID PhMwpOnTimer (_In_ ULONG Id)
 
BOOLEAN PhMwpOnNotify (_In_ NMHDR *Header, _Out_ LRESULT *Result)
 
VOID PhMwpOnWtsSessionChange (_In_ ULONG Reason, _In_ ULONG SessionId)
 
ULONG_PTR PhMwpOnUserMessage (_In_ ULONG Message, _In_ ULONG_PTR WParam, _In_ ULONG_PTR LParam)
 
VOID NTAPI PhMwpProcessAddedHandler (_In_opt_ PVOID Parameter, _In_opt_ PVOID Context)
 
VOID NTAPI PhMwpProcessModifiedHandler (_In_opt_ PVOID Parameter, _In_opt_ PVOID Context)
 
VOID NTAPI PhMwpProcessRemovedHandler (_In_opt_ PVOID Parameter, _In_opt_ PVOID Context)
 
VOID NTAPI PhMwpProcessesUpdatedHandler (_In_opt_ PVOID Parameter, _In_opt_ PVOID Context)
 
VOID NTAPI PhMwpServiceAddedHandler (_In_opt_ PVOID Parameter, _In_opt_ PVOID Context)
 
VOID NTAPI PhMwpServiceModifiedHandler (_In_opt_ PVOID Parameter, _In_opt_ PVOID Context)
 
VOID NTAPI PhMwpServiceRemovedHandler (_In_opt_ PVOID Parameter, _In_opt_ PVOID Context)
 
VOID NTAPI PhMwpServicesUpdatedHandler (_In_opt_ PVOID Parameter, _In_opt_ PVOID Context)
 
VOID NTAPI PhMwpNetworkItemAddedHandler (_In_opt_ PVOID Parameter, _In_opt_ PVOID Context)
 
VOID NTAPI PhMwpNetworkItemModifiedHandler (_In_opt_ PVOID Parameter, _In_opt_ PVOID Context)
 
VOID NTAPI PhMwpNetworkItemRemovedHandler (_In_opt_ PVOID Parameter, _In_opt_ PVOID Context)
 
VOID NTAPI PhMwpNetworkItemsUpdatedHandler (_In_opt_ PVOID Parameter, _In_opt_ PVOID Context)
 
VOID PhMwpLoadSettings (VOID)
 
VOID PhMwpSaveSettings (VOID)
 
VOID PhMwpSaveWindowSettings (VOID)
 
VOID PhLoadDbgHelpFromPath (_In_ PWSTR DbgHelpPath)
 
VOID PhMwpSymInitHandler (_In_opt_ PVOID Parameter, _In_opt_ PVOID Context)
 
VOID PhMwpUpdateLayoutPadding (VOID)
 
VOID PhMwpApplyLayoutPadding (_Inout_ PRECT Rect, _In_ PRECT Padding)
 
VOID PhMwpLayout (_Inout_ HDWP *DeferHandle)
 
VOID PhMwpSetupComputerMenu (_In_ PPH_EMENU_ITEM Root)
 
BOOLEAN PhMwpExecuteComputerCommand (_In_ ULONG Id)
 
VOID PhMwpActivateWindow (_In_ BOOLEAN Toggle)
 
VOID PhMwpInitializeMainMenu (_In_ HMENU Menu)
 
VOID PhMwpDispatchMenuCommand (_In_ HMENU MenuHandle, _In_ ULONG ItemIndex, _In_ ULONG ItemId, _In_ ULONG_PTR ItemData)
 
ULONG_PTR PhMwpLegacyAddPluginMenuItem (_In_ PPH_ADDMENUITEM AddMenuItem)
 
HBITMAP PhMwpGetShieldBitmap (VOID)
 
VOID PhMwpInitializeSubMenu (_In_ PPH_EMENU Menu, _In_ ULONG Index)
 
PPH_EMENU_ITEM PhMwpFindTrayIconsMenuItem (_In_ PPH_EMENU Menu)
 
VOID PhMwpInitializeSectionMenuItems (_In_ PPH_EMENU Menu, _In_ ULONG StartIndex)
 
VOID PhMwpLayoutTabControl (_Inout_ HDWP *DeferHandle)
 
VOID PhMwpNotifyTabControl (_In_ NMHDR *Header)
 
VOID PhMwpSelectionChangedTabControl (_In_ ULONG OldIndex)
 
PPH_ADDITIONAL_TAB_PAGE PhMwpAddTabPage (_In_ PPH_ADDITIONAL_TAB_PAGE TabPage)
 
VOID PhMwpSelectTabPage (_In_ ULONG Index)
 
INT PhMwpFindTabPageIndex (_In_ PWSTR Text)
 
VOID PhAddMiniProcessMenuItems (_Inout_ struct _PH_EMENU_ITEM *Menu, _In_ HANDLE ProcessId)
 
BOOLEAN PhHandleMiniProcessMenuItem (_Inout_ struct _PH_EMENU_ITEM *MenuItem)
 
VOID PhMwpAddIconProcesses (_In_ PPH_EMENU_ITEM Menu, _In_ ULONG NumberOfProcesses)
 
VOID PhShowIconContextMenu (_In_ POINT Location)
 
VOID PhShowIconNotification (_In_ PWSTR Title, _In_ PWSTR Text, _In_ ULONG Flags)
 
VOID PhShowDetailsForIconNotification (VOID)
 
VOID PhMwpClearLastNotificationDetails (VOID)
 
BOOLEAN PhMwpPluginNotifyEvent (_In_ ULONG Type, _In_ PVOID Parameter)
 
VOID PhMwpShowProcessProperties (_In_ PPH_PROCESS_ITEM ProcessItem)
 
BOOLEAN PhMwpCurrentUserProcessTreeFilter (_In_ PPH_TREENEW_NODE Node, _In_opt_ PVOID Context)
 
BOOLEAN PhMwpSignedProcessTreeFilter (_In_ PPH_TREENEW_NODE Node, _In_opt_ PVOID Context)
 
BOOLEAN PhMwpExecuteProcessPriorityCommand (_In_ ULONG Id, _In_ PPH_PROCESS_ITEM *Processes, _In_ ULONG NumberOfProcesses)
 
BOOLEAN PhMwpExecuteProcessIoPriorityCommand (_In_ ULONG Id, _In_ PPH_PROCESS_ITEM *Processes, _In_ ULONG NumberOfProcesses)
 
VOID PhMwpSetProcessMenuPriorityChecks (_In_ PPH_EMENU Menu, _In_ HANDLE ProcessId, _In_ BOOLEAN SetPriority, _In_ BOOLEAN SetIoPriority, _In_ BOOLEAN SetPagePriority)
 
VOID PhMwpInitializeProcessMenu (_In_ PPH_EMENU Menu, _In_ PPH_PROCESS_ITEM *Processes, _In_ ULONG NumberOfProcesses)
 
VOID PhShowProcessContextMenu (_In_ PPH_TREENEW_CONTEXT_MENU ContextMenu)
 
VOID PhMwpOnProcessAdded (_In_ _Assume_refs_(1) PPH_PROCESS_ITEM ProcessItem, _In_ ULONG RunId)
 
VOID PhMwpOnProcessModified (_In_ PPH_PROCESS_ITEM ProcessItem)
 
VOID PhMwpOnProcessRemoved (_In_ PPH_PROCESS_ITEM ProcessItem)
 
VOID PhMwpOnProcessesUpdated (VOID)
 
VOID PhMwpNeedServiceTreeList (VOID)
 
BOOLEAN PhMwpDriverServiceTreeFilter (_In_ PPH_TREENEW_NODE Node, _In_opt_ PVOID Context)
 
VOID PhMwpInitializeServiceMenu (_In_ PPH_EMENU Menu, _In_ PPH_SERVICE_ITEM *Services, _In_ ULONG NumberOfServices)
 
VOID PhShowServiceContextMenu (_In_ PPH_TREENEW_CONTEXT_MENU ContextMenu)
 
VOID PhMwpOnServiceAdded (_In_ _Assume_refs_(1) PPH_SERVICE_ITEM ServiceItem, _In_ ULONG RunId)
 
VOID PhMwpOnServiceModified (_In_ PPH_SERVICE_MODIFIED_DATA ServiceModifiedData)
 
VOID PhMwpOnServiceRemoved (_In_ PPH_SERVICE_ITEM ServiceItem)
 
VOID PhMwpOnServicesUpdated (VOID)
 
VOID PhMwpNeedNetworkTreeList (VOID)
 
BOOLEAN PhMwpCurrentUserNetworkTreeFilter (_In_ PPH_TREENEW_NODE Node, _In_opt_ PVOID Context)
 
BOOLEAN PhMwpSignedNetworkTreeFilter (_In_ PPH_TREENEW_NODE Node, _In_opt_ PVOID Context)
 
VOID PhMwpInitializeNetworkMenu (_In_ PPH_EMENU Menu, _In_ PPH_NETWORK_ITEM *NetworkItems, _In_ ULONG NumberOfNetworkItems)
 
VOID PhShowNetworkContextMenu (_In_ PPH_TREENEW_CONTEXT_MENU ContextMenu)
 
VOID PhMwpOnNetworkItemAdded (_In_ ULONG RunId, _In_ _Assume_refs_(1) PPH_NETWORK_ITEM NetworkItem)
 
VOID PhMwpOnNetworkItemModified (_In_ PPH_NETWORK_ITEM NetworkItem)
 
VOID PhMwpOnNetworkItemRemoved (_In_ PPH_NETWORK_ITEM NetworkItem)
 
VOID PhMwpOnNetworkItemsUpdated (VOID)
 
VOID PhMwpUpdateUsersMenu (VOID)
 

Variables

PHAPPAPI HWND PhMainWndHandle
 
BOOLEAN PhMainWndExiting = FALSE
 
HMENU PhMainWndMenuHandle
 

Macro Definition Documentation

#define PH_MAINWND_PRIVATE

Definition at line 23 of file mainwnd.c.

#define RUNAS_MODE_ADMIN   1

Definition at line 43 of file mainwnd.c.

#define RUNAS_MODE_LIMITED   2

Definition at line 44 of file mainwnd.c.

Typedef Documentation

typedef HRESULT(WINAPI * _LoadIconMetric)(_In_ HINSTANCE hinst, _In_ PCWSTR pszName, _In_ int lims, _Out_ HICON *phico)

Definition at line 46 of file mainwnd.c.

Function Documentation

VOID PhAddMiniProcessMenuItems ( _Inout_ struct _PH_EMENU_ITEM Menu,
_In_ HANDLE  ProcessId 
)

Definition at line 3555 of file mainwnd.c.

BOOLEAN PhHandleMiniProcessMenuItem ( _Inout_ struct _PH_EMENU_ITEM MenuItem)

Definition at line 3615 of file mainwnd.c.

VOID PhLoadDbgHelpFromPath ( _In_ PWSTR  DbgHelpPath)

Definition at line 2690 of file mainwnd.c.

BOOLEAN PhMainWndInitialization ( _In_ INT  ShowCommand)

Definition at line 131 of file mainwnd.c.

VOID PhMwpActivateWindow ( _In_ BOOLEAN  Toggle)

Definition at line 2841 of file mainwnd.c.

VOID PhMwpAddIconProcesses ( _In_ PPH_EMENU_ITEM  Menu,
_In_ ULONG  NumberOfProcesses 
)

Definition at line 3700 of file mainwnd.c.

PPH_ADDITIONAL_TAB_PAGE PhMwpAddTabPage ( _In_ PPH_ADDITIONAL_TAB_PAGE  TabPage)

Definition at line 3463 of file mainwnd.c.

VOID PhMwpApplyLayoutPadding ( _Inout_ PRECT  Rect,
_In_ PRECT  Padding 
)

Definition at line 2754 of file mainwnd.c.

VOID PhMwpApplyUpdateInterval ( _In_ ULONG  Interval)

Definition at line 423 of file mainwnd.c.

VOID PhMwpClearLastNotificationDetails ( VOID  )

Definition at line 4011 of file mainwnd.c.

BOOLEAN PhMwpCurrentUserNetworkTreeFilter ( _In_ PPH_TREENEW_NODE  Node,
_In_opt_ PVOID  Context 
)

Definition at line 5086 of file mainwnd.c.

BOOLEAN PhMwpCurrentUserProcessTreeFilter ( _In_ PPH_TREENEW_NODE  Node,
_In_opt_ PVOID  Context 
)

Definition at line 4059 of file mainwnd.c.

NTSTATUS PhMwpDelayedLoadFunction ( _In_ PVOID  Parameter)

Definition at line 594 of file mainwnd.c.

VOID PhMwpDispatchMenuCommand ( _In_ HMENU  MenuHandle,
_In_ ULONG  ItemIndex,
_In_ ULONG  ItemId,
_In_ ULONG_PTR  ItemData 
)

Definition at line 2882 of file mainwnd.c.

BOOLEAN PhMwpDriverServiceTreeFilter ( _In_ PPH_TREENEW_NODE  Node,
_In_opt_ PVOID  Context 
)

Definition at line 4722 of file mainwnd.c.

BOOLEAN PhMwpExecuteComputerCommand ( _In_ ULONG  Id)

Definition at line 2806 of file mainwnd.c.

BOOLEAN PhMwpExecuteProcessIoPriorityCommand ( _In_ ULONG  Id,
_In_ PPH_PROCESS_ITEM Processes,
_In_ ULONG  NumberOfProcesses 
)

Definition at line 4128 of file mainwnd.c.

BOOLEAN PhMwpExecuteProcessPriorityCommand ( _In_ ULONG  Id,
_In_ PPH_PROCESS_ITEM Processes,
_In_ ULONG  NumberOfProcesses 
)

Definition at line 4091 of file mainwnd.c.

PPH_STRING PhMwpFindDbghelpPath ( VOID  )

Definition at line 612 of file mainwnd.c.

INT PhMwpFindTabPageIndex ( _In_ PWSTR  Text)

Definition at line 3501 of file mainwnd.c.

PPH_EMENU_ITEM PhMwpFindTrayIconsMenuItem ( _In_ PPH_EMENU  Menu)

Definition at line 3207 of file mainwnd.c.

HBITMAP PhMwpGetShieldBitmap ( VOID  )

Definition at line 2963 of file mainwnd.c.

VOID PhMwpInitializeControls ( VOID  )

Definition at line 436 of file mainwnd.c.

VOID PhMwpInitializeMainMenu ( _In_ HMENU  Menu)

Definition at line 2864 of file mainwnd.c.

VOID PhMwpInitializeNetworkMenu ( _In_ PPH_EMENU  Menu,
_In_ PPH_NETWORK_ITEM NetworkItems,
_In_ ULONG  NumberOfNetworkItems 
)

Definition at line 5118 of file mainwnd.c.

VOID PhMwpInitializeProcessMenu ( _In_ PPH_EMENU  Menu,
_In_ PPH_PROCESS_ITEM Processes,
_In_ ULONG  NumberOfProcesses 
)

Definition at line 4301 of file mainwnd.c.

VOID PhMwpInitializeProviders ( VOID  )

Definition at line 399 of file mainwnd.c.

VOID PhMwpInitializeSectionMenuItems ( _In_ PPH_EMENU  Menu,
_In_ ULONG  StartIndex 
)

Definition at line 3225 of file mainwnd.c.

VOID PhMwpInitializeServiceMenu ( _In_ PPH_EMENU  Menu,
_In_ PPH_SERVICE_ITEM Services,
_In_ ULONG  NumberOfServices 
)

Definition at line 4735 of file mainwnd.c.

VOID PhMwpInitializeSubMenu ( _In_ PPH_EMENU  Menu,
_In_ ULONG  Index 
)

Definition at line 2992 of file mainwnd.c.

BOOLEAN PhMwpInitializeWindowClass ( VOID  )

Definition at line 373 of file mainwnd.c.

VOID PhMwpLayout ( _Inout_ HDWP *  DeferHandle)

Definition at line 2765 of file mainwnd.c.

VOID PhMwpLayoutTabControl ( _Inout_ HDWP *  DeferHandle)

Definition at line 3310 of file mainwnd.c.

ULONG_PTR PhMwpLegacyAddPluginMenuItem ( _In_ PPH_ADDMENUITEM  AddMenuItem)

Definition at line 2939 of file mainwnd.c.

VOID PhMwpLoadSettings ( VOID  )

Definition at line 2603 of file mainwnd.c.

VOID PhMwpNeedNetworkTreeList ( VOID  )

Definition at line 5074 of file mainwnd.c.

VOID PhMwpNeedServiceTreeList ( VOID  )

Definition at line 4689 of file mainwnd.c.

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

Definition at line 2559 of file mainwnd.c.

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

Definition at line 2575 of file mainwnd.c.

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

Definition at line 2585 of file mainwnd.c.

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

Definition at line 2595 of file mainwnd.c.

VOID PhMwpNotifyTabControl ( _In_ NMHDR *  Header)

Definition at line 3380 of file mainwnd.c.

VOID PhMwpOnCommand ( _In_ ULONG  Id)

Definition at line 690 of file mainwnd.c.

VOID PhMwpOnDestroy ( VOID  )

Definition at line 654 of file mainwnd.c.

VOID PhMwpOnEndSession ( VOID  )

Definition at line 671 of file mainwnd.c.

VOID PhMwpOnInitMenuPopup ( _In_ HMENU  Menu,
_In_ ULONG  Index,
_In_ BOOLEAN  IsWindowMenu 
)

Definition at line 1871 of file mainwnd.c.

VOID PhMwpOnMenuCommand ( _In_ ULONG  Index,
_In_ HMENU  Menu 
)

Definition at line 1855 of file mainwnd.c.

VOID PhMwpOnNetworkItemAdded ( _In_ ULONG  RunId,
_In_ _Assume_refs_(1) PPH_NETWORK_ITEM  NetworkItem 
)

Definition at line 5237 of file mainwnd.c.

VOID PhMwpOnNetworkItemModified ( _In_ PPH_NETWORK_ITEM  NetworkItem)

Definition at line 5254 of file mainwnd.c.

VOID PhMwpOnNetworkItemRemoved ( _In_ PPH_NETWORK_ITEM  NetworkItem)

Definition at line 5261 of file mainwnd.c.

VOID PhMwpOnNetworkItemsUpdated ( VOID  )

Definition at line 5274 of file mainwnd.c.

BOOLEAN PhMwpOnNotify ( _In_ NMHDR *  Header,
_Out_ LRESULT *  Result 
)

Definition at line 2018 of file mainwnd.c.

VOID PhMwpOnProcessAdded ( _In_ _Assume_refs_(1) PPH_PROCESS_ITEM  ProcessItem,
_In_ ULONG  RunId 
)

Definition at line 4529 of file mainwnd.c.

VOID PhMwpOnProcessesUpdated ( VOID  )

Definition at line 4652 of file mainwnd.c.

VOID PhMwpOnProcessModified ( _In_ PPH_PROCESS_ITEM  ProcessItem)

Definition at line 4605 of file mainwnd.c.

VOID PhMwpOnProcessRemoved ( _In_ PPH_PROCESS_ITEM  ProcessItem)

Definition at line 4615 of file mainwnd.c.

VOID PhMwpOnServiceAdded ( _In_ _Assume_refs_(1) PPH_SERVICE_ITEM  ServiceItem,
_In_ ULONG  RunId 
)

Definition at line 4871 of file mainwnd.c.

VOID PhMwpOnServiceModified ( _In_ PPH_SERVICE_MODIFIED_DATA  ServiceModifiedData)

Definition at line 4922 of file mainwnd.c.

VOID PhMwpOnServiceRemoved ( _In_ PPH_SERVICE_ITEM  ServiceItem)

Definition at line 5006 of file mainwnd.c.

VOID PhMwpOnServicesUpdated ( VOID  )

Definition at line 5058 of file mainwnd.c.

VOID PhMwpOnSetFocus ( VOID  )

Definition at line 1962 of file mainwnd.c.

VOID PhMwpOnSettingChange ( VOID  )

Definition at line 678 of file mainwnd.c.

VOID PhMwpOnShowWindow ( _In_ BOOLEAN  Showing,
_In_ ULONG  State 
)

Definition at line 1808 of file mainwnd.c.

VOID PhMwpOnSize ( VOID  )

Definition at line 1940 of file mainwnd.c.

VOID PhMwpOnSizing ( _In_ ULONG  Edge,
_In_ PRECT  DragRectangle 
)

Definition at line 1954 of file mainwnd.c.

BOOLEAN PhMwpOnSysCommand ( _In_ ULONG  Type,
_In_ LONG  CursorScreenX,
_In_ LONG  CursorScreenY 
)

Definition at line 1820 of file mainwnd.c.

VOID PhMwpOnTimer ( _In_ ULONG  Id)

Definition at line 1976 of file mainwnd.c.

ULONG_PTR PhMwpOnUserMessage ( _In_ ULONG  Message,
_In_ ULONG_PTR  WParam,
_In_ ULONG_PTR  LParam 
)

Definition at line 2128 of file mainwnd.c.

VOID PhMwpOnWtsSessionChange ( _In_ ULONG  Reason,
_In_ ULONG  SessionId 
)

Definition at line 2114 of file mainwnd.c.

BOOLEAN PhMwpPluginNotifyEvent ( _In_ ULONG  Type,
_In_ PVOID  Parameter 
)

Definition at line 4025 of file mainwnd.c.

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

Definition at line 2464 of file mainwnd.c.

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

Definition at line 2504 of file mainwnd.c.

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

Definition at line 2482 of file mainwnd.c.

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

Definition at line 2492 of file mainwnd.c.

VOID PhMwpSaveSettings ( VOID  )

Definition at line 2654 of file mainwnd.c.

VOID PhMwpSaveWindowSettings ( VOID  )

Definition at line 2676 of file mainwnd.c.

VOID PhMwpSelectionChangedTabControl ( _In_ ULONG  OldIndex)

Definition at line 3394 of file mainwnd.c.

VOID PhMwpSelectTabPage ( _In_ ULONG  Index)

Definition at line 3490 of file mainwnd.c.

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

Definition at line 2512 of file mainwnd.c.

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

Definition at line 2528 of file mainwnd.c.

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

Definition at line 2541 of file mainwnd.c.

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

Definition at line 2551 of file mainwnd.c.

VOID PhMwpSetProcessMenuPriorityChecks ( _In_ PPH_EMENU  Menu,
_In_ HANDLE  ProcessId,
_In_ BOOLEAN  SetPriority,
_In_ BOOLEAN  SetIoPriority,
_In_ BOOLEAN  SetPagePriority 
)

Definition at line 4159 of file mainwnd.c.

VOID PhMwpSetupComputerMenu ( _In_ PPH_EMENU_ITEM  Root)

Definition at line 2791 of file mainwnd.c.

VOID PhMwpShowProcessProperties ( _In_ PPH_PROCESS_ITEM  ProcessItem)

Definition at line 4041 of file mainwnd.c.

BOOLEAN PhMwpSignedNetworkTreeFilter ( _In_ PPH_TREENEW_NODE  Node,
_In_opt_ PVOID  Context 
)

Definition at line 5102 of file mainwnd.c.

BOOLEAN PhMwpSignedProcessTreeFilter ( _In_ PPH_TREENEW_NODE  Node,
_In_opt_ PVOID  Context 
)

Definition at line 4078 of file mainwnd.c.

VOID PhMwpSymInitHandler ( _In_opt_ PVOID  Parameter,
_In_opt_ PVOID  Context 
)

Definition at line 2730 of file mainwnd.c.

VOID PhMwpUpdateLayoutPadding ( VOID  )

Definition at line 2742 of file mainwnd.c.

VOID PhMwpUpdateUsersMenu ( VOID  )

Definition at line 5287 of file mainwnd.c.

LRESULT CALLBACK PhMwpWndProc ( _In_ HWND  hWnd,
_In_ UINT  uMsg,
_In_ WPARAM  wParam,
_In_ LPARAM  lParam 
)

Definition at line 280 of file mainwnd.c.

VOID PhShowDetailsForIconNotification ( VOID  )

Definition at line 3973 of file mainwnd.c.

VOID PhShowIconContextMenu ( _In_ POINT  Location)

Definition at line 3811 of file mainwnd.c.

VOID PhShowIconNotification ( _In_ PWSTR  Title,
_In_ PWSTR  Text,
_In_ ULONG  Flags 
)

Definition at line 3964 of file mainwnd.c.

VOID PhShowNetworkContextMenu ( _In_ PPH_TREENEW_CONTEXT_MENU  ContextMenu)

Definition at line 5178 of file mainwnd.c.

VOID PhShowProcessContextMenu ( _In_ PPH_TREENEW_CONTEXT_MENU  ContextMenu)

Definition at line 4470 of file mainwnd.c.

VOID PhShowServiceContextMenu ( _In_ PPH_TREENEW_CONTEXT_MENU  ContextMenu)

Definition at line 4812 of file mainwnd.c.

Variable Documentation

BOOLEAN PhMainWndExiting = FALSE

Definition at line 54 of file mainwnd.c.

PHAPPAPI HWND PhMainWndHandle

Definition at line 53 of file mainwnd.c.

HMENU PhMainWndMenuHandle

Definition at line 55 of file mainwnd.c.

HANDLE ProcessId

Definition at line 127 of file mainwnd.c.

PPH_STRING ServiceName

Definition at line 128 of file mainwnd.c.