Process Hacker
miniinfo.c File Reference
#include <phapp.h>
#include <settings.h>
#include <emenu.h>
#include <miniinfo.h>
#include <phplug.h>
#include <notifico.h>
#include <windowsx.h>
#include <uxtheme.h>
#include <miniinfop.h>

Go to the source code of this file.

Functions

 C_ASSERT (sizeof(PhMipMaxPinCounts)/sizeof(LONG)==MaxMiniInfoPinType)
 
VOID PhPinMiniInformation (_In_ PH_MINIINFO_PIN_TYPE PinType, _In_ LONG PinCount, _In_opt_ ULONG PinDelayMs, _In_ ULONG Flags, _In_opt_ PWSTR SectionName, _In_opt_ PPOINT SourcePoint)
 
LRESULT CALLBACK PhMipContainerWndProc (_In_ HWND hWnd, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
INT_PTR CALLBACK PhMipMiniInfoDialogProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
VOID PhMipContainerOnShowWindow (_In_ BOOLEAN Showing, _In_ ULONG State)
 
VOID PhMipContainerOnActivate (_In_ ULONG Type, _In_ BOOLEAN Minimized)
 
VOID PhMipContainerOnSize (VOID)
 
VOID PhMipContainerOnSizing (_In_ ULONG Edge, _In_ PRECT DragRectangle)
 
VOID PhMipContainerOnExitSizeMove (VOID)
 
BOOLEAN PhMipContainerOnEraseBkgnd (_In_ HDC hdc)
 
VOID PhMipContainerOnTimer (_In_ ULONG Id)
 
VOID PhMipOnInitDialog (VOID)
 
VOID PhMipOnShowWindow (_In_ BOOLEAN Showing, _In_ ULONG State)
 
VOID PhMipOnCommand (_In_ ULONG Id, _In_ ULONG Code)
 
BOOLEAN PhMipOnNotify (_In_ NMHDR *Header, _Out_ LRESULT *Result)
 
BOOLEAN PhMipOnCtlColorXxx (_In_ ULONG Message, _In_ HWND hwnd, _In_ HDC hdc, _Out_ HBRUSH *Brush)
 
BOOLEAN PhMipOnDrawItem (_In_ ULONG_PTR Id, _In_ DRAWITEMSTRUCT *DrawItemStruct)
 
VOID PhMipOnUserMessage (_In_ ULONG Message, _In_ ULONG_PTR WParam, _In_ ULONG_PTR LParam)
 
BOOLEAN PhMipMessageLoopFilter (_In_ PMSG Message, _In_ PVOID Context)
 
VOID NTAPI PhMipUpdateHandler (_In_opt_ PVOID Parameter, _In_opt_ PVOID Context)
 
PH_MIP_ADJUST_PIN_RESULT PhMipAdjustPin (_In_ PH_MINIINFO_PIN_TYPE PinType, _In_ LONG PinCount)
 
VOID PhMipCalculateWindowRectangle (_In_ PPOINT SourcePoint, _Out_ PPH_RECTANGLE WindowRectangle)
 
VOID PhMipInitializeParameters (VOID)
 
PPH_MINIINFO_SECTION PhMipCreateSection (_In_ PPH_MINIINFO_SECTION Template)
 
VOID PhMipDestroySection (_In_ PPH_MINIINFO_SECTION Section)
 
PPH_MINIINFO_SECTION PhMipFindSection (_In_ PPH_STRINGREF Name)
 
PPH_MINIINFO_SECTION PhMipCreateInternalSection (_In_ PWSTR Name, _In_ ULONG Flags, _In_ PPH_MINIINFO_SECTION_CALLBACK Callback)
 
VOID PhMipCreateSectionDialog (_In_ PPH_MINIINFO_SECTION Section)
 
VOID PhMipChangeSection (_In_ PPH_MINIINFO_SECTION NewSection)
 
VOID PhMipSetSectionText (_In_ struct _PH_MINIINFO_SECTION *Section, _In_opt_ PPH_STRING Text)
 
VOID PhMipUpdateSectionText (_In_ PPH_MINIINFO_SECTION Section)
 
VOID PhMipLayout (VOID)
 
VOID PhMipBeginChildControlPin (VOID)
 
VOID PhMipEndChildControlPin (VOID)
 
VOID PhMipRefresh (VOID)
 
VOID PhMipToggleRefreshAutomatically (VOID)
 
VOID PhMipSetPinned (_In_ BOOLEAN Pinned)
 
VOID PhMipShowSectionMenu (VOID)
 
VOID PhMipShowOptionsMenu (VOID)
 
LRESULT CALLBACK PhMipSectionControlHookWndProc (_In_ HWND hwnd, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
PPH_MINIINFO_LIST_SECTION PhMipCreateListSection (_In_ PWSTR Name, _In_ ULONG Flags, _In_ PPH_MINIINFO_LIST_SECTION Template)
 
PPH_MINIINFO_LIST_SECTION PhMipCreateInternalListSection (_In_ PWSTR Name, _In_ ULONG Flags, _In_ PPH_MINIINFO_LIST_SECTION_CALLBACK Callback)
 
BOOLEAN PhMipListSectionCallback (_In_ PPH_MINIINFO_SECTION Section, _In_ PH_MINIINFO_SECTION_MESSAGE Message, _In_opt_ PVOID Parameter1, _In_opt_ PVOID Parameter2)
 
INT_PTR CALLBACK PhMipListSectionDialogProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
VOID PhMipListSectionSortFunction (_In_ PPH_LIST List, _In_opt_ PVOID Context)
 
VOID PhMipTickListSection (_In_ PPH_MINIINFO_LIST_SECTION ListSection)
 
VOID PhMipClearListSection (_In_ PPH_MINIINFO_LIST_SECTION ListSection)
 
LONG PhMipCalculateRowHeight (VOID)
 
PPH_MIP_GROUP_NODE PhMipAddGroupNode (_In_ PPH_MINIINFO_LIST_SECTION ListSection, _In_ PPH_PROCESS_GROUP ProcessGroup)
 
VOID PhMipDestroyGroupNode (_In_ PPH_MIP_GROUP_NODE Node)
 
BOOLEAN PhMipListSectionTreeNewCallback (_In_ HWND hwnd, _In_ PH_TREENEW_MESSAGE Message, _In_opt_ PVOID Parameter1, _In_opt_ PVOID Parameter2, _In_opt_ PVOID Context)
 
PPH_STRING PhMipGetGroupNodeTooltip (_In_ PPH_MINIINFO_LIST_SECTION ListSection, _In_ PPH_MIP_GROUP_NODE Node)
 
PPH_MIP_GROUP_NODE PhMipGetSelectedGroupNode (_In_ PPH_MINIINFO_LIST_SECTION ListSection)
 
VOID PhMipShowListSectionContextMenu (_In_ PPH_MINIINFO_LIST_SECTION ListSection, _In_ PPH_TREENEW_CONTEXT_MENU ContextMenu)
 
VOID PhMipHandleListSectionCommand (_In_ PPH_MINIINFO_LIST_SECTION ListSection, _In_ PPH_PROCESS_GROUP ProcessGroup, _In_ ULONG Id)
 
BOOLEAN PhMipCpuListSectionCallback (_In_ struct _PH_MINIINFO_LIST_SECTION *ListSection, _In_ PH_MINIINFO_LIST_SECTION_MESSAGE Message, _In_opt_ PVOID Parameter1, _In_opt_ PVOID Parameter2)
 
int __cdecl PhMipCpuListSectionProcessCompareFunction (_In_ const void *elem1, _In_ const void *elem2)
 
int __cdecl PhMipCpuListSectionNodeCompareFunction (_In_ const void *elem1, _In_ const void *elem2)
 
BOOLEAN PhMipCommitListSectionCallback (_In_ struct _PH_MINIINFO_LIST_SECTION *ListSection, _In_ PH_MINIINFO_LIST_SECTION_MESSAGE Message, _In_opt_ PVOID Parameter1, _In_opt_ PVOID Parameter2)
 
int __cdecl PhMipCommitListSectionProcessCompareFunction (_In_ const void *elem1, _In_ const void *elem2)
 
int __cdecl PhMipCommitListSectionNodeCompareFunction (_In_ const void *elem1, _In_ const void *elem2)
 
BOOLEAN PhMipPhysicalListSectionCallback (_In_ struct _PH_MINIINFO_LIST_SECTION *ListSection, _In_ PH_MINIINFO_LIST_SECTION_MESSAGE Message, _In_opt_ PVOID Parameter1, _In_opt_ PVOID Parameter2)
 
int __cdecl PhMipPhysicalListSectionProcessCompareFunction (_In_ const void *elem1, _In_ const void *elem2)
 
int __cdecl PhMipPhysicalListSectionNodeCompareFunction (_In_ const void *elem1, _In_ const void *elem2)
 
BOOLEAN PhMipIoListSectionCallback (_In_ struct _PH_MINIINFO_LIST_SECTION *ListSection, _In_ PH_MINIINFO_LIST_SECTION_MESSAGE Message, _In_opt_ PVOID Parameter1, _In_opt_ PVOID Parameter2)
 
int __cdecl PhMipIoListSectionProcessCompareFunction (_In_ const void *elem1, _In_ const void *elem2)
 
int __cdecl PhMipIoListSectionNodeCompareFunction (_In_ const void *elem1, _In_ const void *elem2)
 

Function Documentation

C_ASSERT ( sizeof(PhMipMaxPinCounts)/sizeof(LONG = =MaxMiniInfoPinType)
PPH_MIP_GROUP_NODE PhMipAddGroupNode ( _In_ PPH_MINIINFO_LIST_SECTION  ListSection,
_In_ PPH_PROCESS_GROUP  ProcessGroup 
)

Definition at line 1392 of file miniinfo.c.

PH_MIP_ADJUST_PIN_RESULT PhMipAdjustPin ( _In_ PH_MINIINFO_PIN_TYPE  PinType,
_In_ LONG  PinCount 
)

Definition at line 638 of file miniinfo.c.

VOID PhMipBeginChildControlPin ( VOID  )

Definition at line 986 of file miniinfo.c.

LONG PhMipCalculateRowHeight ( VOID  )

Definition at line 1378 of file miniinfo.c.

VOID PhMipCalculateWindowRectangle ( _In_ PPOINT  SourcePoint,
_Out_ PPH_RECTANGLE  WindowRectangle 
)

Definition at line 666 of file miniinfo.c.

VOID PhMipChangeSection ( _In_ PPH_MINIINFO_SECTION  NewSection)

Definition at line 873 of file miniinfo.c.

VOID PhMipClearListSection ( _In_ PPH_MINIINFO_LIST_SECTION  ListSection)

Definition at line 1360 of file miniinfo.c.

BOOLEAN PhMipCommitListSectionCallback ( _In_ struct _PH_MINIINFO_LIST_SECTION ListSection,
_In_ PH_MINIINFO_LIST_SECTION_MESSAGE  Message,
_In_opt_ PVOID  Parameter1,
_In_opt_ PVOID  Parameter2 
)

Definition at line 1941 of file miniinfo.c.

int __cdecl PhMipCommitListSectionNodeCompareFunction ( _In_ const void *  elem1,
_In_ const void *  elem2 
)

Definition at line 2020 of file miniinfo.c.

int __cdecl PhMipCommitListSectionProcessCompareFunction ( _In_ const void *  elem1,
_In_ const void *  elem2 
)

Definition at line 2009 of file miniinfo.c.

VOID PhMipContainerOnActivate ( _In_ ULONG  Type,
_In_ BOOLEAN  Minimized 
)

Definition at line 374 of file miniinfo.c.

BOOLEAN PhMipContainerOnEraseBkgnd ( _In_ HDC  hdc)

Definition at line 415 of file miniinfo.c.

VOID PhMipContainerOnExitSizeMove ( VOID  )

Definition at line 408 of file miniinfo.c.

VOID PhMipContainerOnShowWindow ( _In_ BOOLEAN  Showing,
_In_ ULONG  State 
)

Definition at line 316 of file miniinfo.c.

VOID PhMipContainerOnSize ( VOID  )

Definition at line 389 of file miniinfo.c.

VOID PhMipContainerOnSizing ( _In_ ULONG  Edge,
_In_ PRECT  DragRectangle 
)

Definition at line 400 of file miniinfo.c.

VOID PhMipContainerOnTimer ( _In_ ULONG  Id)

Definition at line 422 of file miniinfo.c.

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

Definition at line 197 of file miniinfo.c.

BOOLEAN PhMipCpuListSectionCallback ( _In_ struct _PH_MINIINFO_LIST_SECTION ListSection,
_In_ PH_MINIINFO_LIST_SECTION_MESSAGE  Message,
_In_opt_ PVOID  Parameter1,
_In_opt_ PVOID  Parameter2 
)

Definition at line 1849 of file miniinfo.c.

int __cdecl PhMipCpuListSectionNodeCompareFunction ( _In_ const void *  elem1,
_In_ const void *  elem2 
)

Definition at line 1930 of file miniinfo.c.

int __cdecl PhMipCpuListSectionProcessCompareFunction ( _In_ const void *  elem1,
_In_ const void *  elem2 
)

Definition at line 1913 of file miniinfo.c.

PPH_MINIINFO_LIST_SECTION PhMipCreateInternalListSection ( _In_ PWSTR  Name,
_In_ ULONG  Flags,
_In_ PPH_MINIINFO_LIST_SECTION_CALLBACK  Callback 
)

Definition at line 1179 of file miniinfo.c.

PPH_MINIINFO_SECTION PhMipCreateInternalSection ( _In_ PWSTR  Name,
_In_ ULONG  Flags,
_In_ PPH_MINIINFO_SECTION_CALLBACK  Callback 
)

Definition at line 833 of file miniinfo.c.

PPH_MINIINFO_LIST_SECTION PhMipCreateListSection ( _In_ PWSTR  Name,
_In_ ULONG  Flags,
_In_ PPH_MINIINFO_LIST_SECTION  Template 
)

Definition at line 1154 of file miniinfo.c.

PPH_MINIINFO_SECTION PhMipCreateSection ( _In_ PPH_MINIINFO_SECTION  Template)

Definition at line 783 of file miniinfo.c.

VOID PhMipCreateSectionDialog ( _In_ PPH_MINIINFO_SECTION  Section)

Definition at line 849 of file miniinfo.c.

VOID PhMipDestroyGroupNode ( _In_ PPH_MIP_GROUP_NODE  Node)

Definition at line 1412 of file miniinfo.c.

VOID PhMipDestroySection ( _In_ PPH_MINIINFO_SECTION  Section)

Definition at line 805 of file miniinfo.c.

VOID PhMipEndChildControlPin ( VOID  )

Definition at line 993 of file miniinfo.c.

PPH_MINIINFO_SECTION PhMipFindSection ( _In_ PPH_STRINGREF  Name)

Definition at line 815 of file miniinfo.c.

PPH_STRING PhMipGetGroupNodeTooltip ( _In_ PPH_MINIINFO_LIST_SECTION  ListSection,
_In_ PPH_MIP_GROUP_NODE  Node 
)

Definition at line 1704 of file miniinfo.c.

PPH_MIP_GROUP_NODE PhMipGetSelectedGroupNode ( _In_ PPH_MINIINFO_LIST_SECTION  ListSection)

Definition at line 1718 of file miniinfo.c.

VOID PhMipHandleListSectionCommand ( _In_ PPH_MINIINFO_LIST_SECTION  ListSection,
_In_ PPH_PROCESS_GROUP  ProcessGroup,
_In_ ULONG  Id 
)

Definition at line 1813 of file miniinfo.c.

VOID PhMipInitializeParameters ( VOID  )

Definition at line 738 of file miniinfo.c.

BOOLEAN PhMipIoListSectionCallback ( _In_ struct _PH_MINIINFO_LIST_SECTION ListSection,
_In_ PH_MINIINFO_LIST_SECTION_MESSAGE  Message,
_In_opt_ PVOID  Parameter1,
_In_opt_ PVOID  Parameter2 
)

Definition at line 2122 of file miniinfo.c.

int __cdecl PhMipIoListSectionNodeCompareFunction ( _In_ const void *  elem1,
_In_ const void *  elem2 
)

Definition at line 2225 of file miniinfo.c.

int __cdecl PhMipIoListSectionProcessCompareFunction ( _In_ const void *  elem1,
_In_ const void *  elem2 
)

Definition at line 2204 of file miniinfo.c.

VOID PhMipLayout ( VOID  )

Definition at line 931 of file miniinfo.c.

BOOLEAN PhMipListSectionCallback ( _In_ PPH_MINIINFO_SECTION  Section,
_In_ PH_MINIINFO_SECTION_MESSAGE  Message,
_In_opt_ PVOID  Parameter1,
_In_opt_ PVOID  Parameter2 
)

Definition at line 1193 of file miniinfo.c.

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

Definition at line 1251 of file miniinfo.c.

VOID PhMipListSectionSortFunction ( _In_ PPH_LIST  List,
_In_opt_ PVOID  Context 
)

Definition at line 1307 of file miniinfo.c.

BOOLEAN PhMipListSectionTreeNewCallback ( _In_ HWND  hwnd,
_In_ PH_TREENEW_MESSAGE  Message,
_In_opt_ PVOID  Parameter1,
_In_opt_ PVOID  Parameter2,
_In_opt_ PVOID  Context 
)

Definition at line 1420 of file miniinfo.c.

BOOLEAN PhMipMessageLoopFilter ( _In_ PMSG  Message,
_In_ PVOID  Context 
)

Definition at line 579 of file miniinfo.c.

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

Definition at line 254 of file miniinfo.c.

VOID PhMipOnCommand ( _In_ ULONG  Id,
_In_ ULONG  Code 
)

Definition at line 496 of file miniinfo.c.

BOOLEAN PhMipOnCtlColorXxx ( _In_ ULONG  Message,
_In_ HWND  hwnd,
_In_ HDC  hdc,
_Out_ HBRUSH *  Brush 
)

Definition at line 535 of file miniinfo.c.

BOOLEAN PhMipOnDrawItem ( _In_ ULONG_PTR  Id,
_In_ DRAWITEMSTRUCT *  DrawItemStruct 
)

Definition at line 545 of file miniinfo.c.

VOID PhMipOnInitDialog ( VOID  )

Definition at line 435 of file miniinfo.c.

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

Definition at line 527 of file miniinfo.c.

VOID PhMipOnShowWindow ( _In_ BOOLEAN  Showing,
_In_ ULONG  State 
)

Definition at line 464 of file miniinfo.c.

VOID PhMipOnUserMessage ( _In_ ULONG  Message,
_In_ ULONG_PTR  WParam,
_In_ ULONG_PTR  LParam 
)

Definition at line 553 of file miniinfo.c.

BOOLEAN PhMipPhysicalListSectionCallback ( _In_ struct _PH_MINIINFO_LIST_SECTION ListSection,
_In_ PH_MINIINFO_LIST_SECTION_MESSAGE  Message,
_In_opt_ PVOID  Parameter1,
_In_opt_ PVOID  Parameter2 
)

Definition at line 2031 of file miniinfo.c.

int __cdecl PhMipPhysicalListSectionNodeCompareFunction ( _In_ const void *  elem1,
_In_ const void *  elem2 
)

Definition at line 2111 of file miniinfo.c.

int __cdecl PhMipPhysicalListSectionProcessCompareFunction ( _In_ const void *  elem1,
_In_ const void *  elem2 
)

Definition at line 2100 of file miniinfo.c.

VOID PhMipRefresh ( VOID  )

Definition at line 1001 of file miniinfo.c.

LRESULT CALLBACK PhMipSectionControlHookWndProc ( _In_ HWND  hwnd,
_In_ UINT  uMsg,
_In_ WPARAM  wParam,
_In_ LPARAM  lParam 
)

Definition at line 1135 of file miniinfo.c.

VOID PhMipSetPinned ( _In_ BOOLEAN  Pinned)

Definition at line 1019 of file miniinfo.c.

VOID PhMipSetSectionText ( _In_ struct _PH_MINIINFO_SECTION Section,
_In_opt_ PPH_STRING  Text 
)

Definition at line 904 of file miniinfo.c.

VOID PhMipShowListSectionContextMenu ( _In_ PPH_MINIINFO_LIST_SECTION  ListSection,
_In_ PPH_TREENEW_CONTEXT_MENU  ContextMenu 
)

Definition at line 1736 of file miniinfo.c.

VOID PhMipShowOptionsMenu ( VOID  )

Definition at line 1069 of file miniinfo.c.

VOID PhMipShowSectionMenu ( VOID  )

Definition at line 1030 of file miniinfo.c.

VOID PhMipTickListSection ( _In_ PPH_MINIINFO_LIST_SECTION  ListSection)

Definition at line 1319 of file miniinfo.c.

VOID PhMipToggleRefreshAutomatically ( VOID  )

Definition at line 1011 of file miniinfo.c.

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

Definition at line 629 of file miniinfo.c.

VOID PhMipUpdateSectionText ( _In_ PPH_MINIINFO_SECTION  Section)

Definition at line 915 of file miniinfo.c.

VOID PhPinMiniInformation ( _In_ PH_MINIINFO_PIN_TYPE  PinType,
_In_ LONG  PinCount,
_In_opt_ ULONG  PinDelayMs,
_In_ ULONG  Flags,
_In_opt_ PWSTR  SectionName,
_In_opt_ PPOINT  SourcePoint 
)

Definition at line 63 of file miniinfo.c.