Process Hacker
sysinfo.c File Reference
#include <phapp.h>
#include <kphuser.h>
#include <symprv.h>
#include <settings.h>
#include <sysinfo.h>
#include <phplug.h>
#include <windowsx.h>
#include <uxtheme.h>
#include <vssym32.h>
#include <math.h>
#include <sysinfop.h>

Go to the source code of this file.

Functions

VOID PhShowSystemInformationDialog (_In_opt_ PWSTR SectionName)
 
NTSTATUS PhSipSysInfoThreadStart (_In_ PVOID Parameter)
 
INT_PTR CALLBACK PhSipSysInfoDialogProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
INT_PTR CALLBACK PhSipContainerDialogProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
VOID PhSipOnInitDialog (VOID)
 
VOID PhSipOnDestroy (VOID)
 
VOID PhSipOnNcDestroy (VOID)
 
VOID PhSipOnShowWindow (_In_ BOOLEAN Showing, _In_ ULONG State)
 
VOID PhSipOnSize (VOID)
 
VOID PhSipOnSizing (_In_ ULONG Edge, _In_ PRECT DragRectangle)
 
VOID PhSipOnThemeChanged (VOID)
 
VOID PhSipOnCommand (_In_ ULONG Id, _In_ ULONG Code)
 
BOOLEAN PhSipOnNotify (_In_ NMHDR *Header, _Out_ LRESULT *Result)
 
BOOLEAN PhSipOnDrawItem (_In_ ULONG_PTR Id, _In_ DRAWITEMSTRUCT *DrawItemStruct)
 
VOID PhSipOnUserMessage (_In_ ULONG Message, _In_ ULONG_PTR WParam, _In_ ULONG_PTR LParam)
 
VOID PhSiNotifyChangeSettings (VOID)
 
VOID PhSiSetColorsGraphDrawInfo (_Out_ PPH_GRAPH_DRAW_INFO DrawInfo, _In_ COLORREF Color1, _In_ COLORREF Color2)
 
VOID PhSipRegisterDialog (_In_ HWND DialogWindowHandle)
 
VOID PhSipUnregisterDialog (_In_ HWND DialogWindowHandle)
 
VOID PhSipInitializeParameters (VOID)
 
VOID PhSipDeleteParameters (VOID)
 
VOID PhSipUpdateColorParameters (VOID)
 
PPH_SYSINFO_SECTION PhSipCreateSection (_In_ PPH_SYSINFO_SECTION Template)
 
VOID PhSipDestroySection (_In_ PPH_SYSINFO_SECTION Section)
 
PPH_SYSINFO_SECTION PhSipFindSection (_In_ PPH_STRINGREF Name)
 
PPH_SYSINFO_SECTION PhSipCreateInternalSection (_In_ PWSTR Name, _In_ ULONG Flags, _In_ PPH_SYSINFO_SECTION_CALLBACK Callback)
 
VOID PhSipDrawRestoreSummaryPanel (_In_ HDC hdc, _In_ PRECT Rect)
 
VOID PhSipDrawSeparator (_In_ HDC hdc, _In_ PRECT Rect)
 
VOID PhSipDrawPanel (_In_ PPH_SYSINFO_SECTION Section, _In_ HDC hdc, _In_ PRECT Rect)
 
VOID PhSipDefaultDrawPanel (_In_ PPH_SYSINFO_SECTION Section, _In_ PPH_SYSINFO_DRAW_PANEL DrawPanel)
 
VOID PhSipLayoutSummaryView (VOID)
 
VOID PhSipLayoutSectionView (VOID)
 
VOID PhSipEnterSectionView (_In_ PPH_SYSINFO_SECTION NewSection)
 
VOID PhSipRestoreSummaryView (VOID)
 
VOID PhSipCreateSectionDialog (_In_ PPH_SYSINFO_SECTION Section)
 
LRESULT CALLBACK PhSipGraphHookWndProc (_In_ HWND hwnd, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
LRESULT CALLBACK PhSipPanelHookWndProc (_In_ HWND hwnd, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
VOID PhSipUpdateThemeData (VOID)
 
VOID PhSipSetAlwaysOnTop (VOID)
 
VOID NTAPI PhSipSysInfoUpdateHandler (_In_opt_ PVOID Parameter, _In_opt_ PVOID Context)
 
PPH_STRING PhSipFormatSizeWithPrecision (_In_ ULONG64 Size, _In_ USHORT Precision)
 
BOOLEAN PhSipCpuSectionCallback (_In_ PPH_SYSINFO_SECTION Section, _In_ PH_SYSINFO_SECTION_MESSAGE Message, _In_opt_ PVOID Parameter1, _In_opt_ PVOID Parameter2)
 
VOID PhSipInitializeCpuDialog (VOID)
 
VOID PhSipUninitializeCpuDialog (VOID)
 
VOID PhSipTickCpuDialog (VOID)
 
INT_PTR CALLBACK PhSipCpuDialogProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
INT_PTR CALLBACK PhSipCpuPanelDialogProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
VOID PhSipCreateCpuGraphs (VOID)
 
VOID PhSipLayoutCpuGraphs (VOID)
 
VOID PhSipSetOneGraphPerCpu (VOID)
 
VOID PhSipNotifyCpuGraph (_In_ ULONG Index, _In_ NMHDR *Header)
 
VOID PhSipUpdateCpuGraphs (VOID)
 
VOID PhSipUpdateCpuPanel (VOID)
 
PPH_PROCESS_RECORD PhSipReferenceMaxCpuRecord (_In_ LONG Index)
 
PPH_STRING PhSipGetMaxCpuString (_In_ LONG Index)
 
VOID PhSipGetCpuBrandString (_Out_writes_(49) PWSTR BrandString)
 
BOOLEAN PhSipGetCpuFrequencyFromDistribution (_Out_ DOUBLE *Fraction)
 
NTSTATUS PhSipQueryProcessorPerformanceDistribution (_Out_ PVOID *Buffer)
 
BOOLEAN PhSipMemorySectionCallback (_In_ PPH_SYSINFO_SECTION Section, _In_ PH_SYSINFO_SECTION_MESSAGE Message, _In_opt_ PVOID Parameter1, _In_opt_ PVOID Parameter2)
 
VOID PhSipInitializeMemoryDialog (VOID)
 
VOID PhSipUninitializeMemoryDialog (VOID)
 
VOID PhSipTickMemoryDialog (VOID)
 
INT_PTR CALLBACK PhSipMemoryDialogProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
INT_PTR CALLBACK PhSipMemoryPanelDialogProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
VOID PhSipLayoutMemoryGraphs (VOID)
 
VOID PhSipNotifyCommitGraph (_In_ NMHDR *Header)
 
VOID PhSipNotifyPhysicalGraph (_In_ NMHDR *Header)
 
VOID PhSipUpdateMemoryGraphs (VOID)
 
VOID PhSipUpdateMemoryPanel (VOID)
 
NTSTATUS PhSipLoadMmAddresses (_In_ PVOID Parameter)
 
VOID PhSipGetPoolLimits (_Out_ PSIZE_T Paged, _Out_ PSIZE_T NonPaged)
 
BOOLEAN PhSipIoSectionCallback (_In_ PPH_SYSINFO_SECTION Section, _In_ PH_SYSINFO_SECTION_MESSAGE Message, _In_opt_ PVOID Parameter1, _In_opt_ PVOID Parameter2)
 
VOID PhSipInitializeIoDialog (VOID)
 
VOID PhSipUninitializeIoDialog (VOID)
 
VOID PhSipTickIoDialog (VOID)
 
INT_PTR CALLBACK PhSipIoDialogProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
INT_PTR CALLBACK PhSipIoPanelDialogProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
VOID PhSipNotifyIoGraph (_In_ NMHDR *Header)
 
VOID PhSipUpdateIoGraph (VOID)
 
VOID PhSipUpdateIoPanel (VOID)
 
PPH_PROCESS_RECORD PhSipReferenceMaxIoRecord (_In_ LONG Index)
 
PPH_STRING PhSipGetMaxIoString (_In_ LONG Index)
 

Function Documentation

VOID PhShowSystemInformationDialog ( _In_opt_ PWSTR  SectionName)

Definition at line 149 of file sysinfo.c.

VOID PhSiNotifyChangeSettings ( VOID  )

Definition at line 837 of file sysinfo.c.

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

Definition at line 325 of file sysinfo.c.

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

Definition at line 2153 of file sysinfo.c.

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

Definition at line 2244 of file sysinfo.c.

BOOLEAN PhSipCpuSectionCallback ( _In_ PPH_SYSINFO_SECTION  Section,
_In_ PH_SYSINFO_SECTION_MESSAGE  Message,
_In_opt_ PVOID  Parameter1,
_In_opt_ PVOID  Parameter2 
)

Definition at line 1950 of file sysinfo.c.

VOID PhSipCreateCpuGraphs ( VOID  )

Definition at line 2278 of file sysinfo.c.

PPH_SYSINFO_SECTION PhSipCreateInternalSection ( _In_ PWSTR  Name,
_In_ ULONG  Flags,
_In_ PPH_SYSINFO_SECTION_CALLBACK  Callback 
)

Definition at line 1095 of file sysinfo.c.

PPH_SYSINFO_SECTION PhSipCreateSection ( _In_ PPH_SYSINFO_SECTION  Template)

Definition at line 999 of file sysinfo.c.

VOID PhSipCreateSectionDialog ( _In_ PPH_SYSINFO_SECTION  Section)

Definition at line 1567 of file sysinfo.c.

VOID PhSipDefaultDrawPanel ( _In_ PPH_SYSINFO_SECTION  Section,
_In_ PPH_SYSINFO_DRAW_PANEL  DrawPanel 
)

Definition at line 1190 of file sysinfo.c.

VOID PhSipDeleteParameters ( VOID  )

Definition at line 970 of file sysinfo.c.

VOID PhSipDestroySection ( _In_ PPH_SYSINFO_SECTION  Section)

Definition at line 1067 of file sysinfo.c.

VOID PhSipDrawPanel ( _In_ PPH_SYSINFO_SECTION  Section,
_In_ HDC  hdc,
_In_ PRECT  Rect 
)

Definition at line 1157 of file sysinfo.c.

VOID PhSipDrawRestoreSummaryPanel ( _In_ HDC  hdc,
_In_ PRECT  Rect 
)

Definition at line 1111 of file sysinfo.c.

VOID PhSipDrawSeparator ( _In_ HDC  hdc,
_In_ PRECT  Rect 
)

Definition at line 1144 of file sysinfo.c.

VOID PhSipEnterSectionView ( _In_ PPH_SYSINFO_SECTION  NewSection)

Definition at line 1481 of file sysinfo.c.

PPH_SYSINFO_SECTION PhSipFindSection ( _In_ PPH_STRINGREF  Name)

Definition at line 1077 of file sysinfo.c.

PPH_STRING PhSipFormatSizeWithPrecision ( _In_ ULONG64  Size,
_In_ USHORT  Precision 
)

Definition at line 1936 of file sysinfo.c.

VOID PhSipGetCpuBrandString ( _Out_writes_(49) PWSTR  BrandString)

Definition at line 2713 of file sysinfo.c.

BOOLEAN PhSipGetCpuFrequencyFromDistribution ( _Out_ DOUBLE *  Fraction)

Definition at line 2727 of file sysinfo.c.

PPH_STRING PhSipGetMaxCpuString ( _In_ LONG  Index)

Definition at line 2669 of file sysinfo.c.

PPH_STRING PhSipGetMaxIoString ( _In_ LONG  Index)

Definition at line 4159 of file sysinfo.c.

VOID PhSipGetPoolLimits ( _Out_ PSIZE_T  Paged,
_Out_ PSIZE_T  NonPaged 
)

Definition at line 3684 of file sysinfo.c.

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

Definition at line 1591 of file sysinfo.c.

VOID PhSipInitializeCpuDialog ( VOID  )

Definition at line 2032 of file sysinfo.c.

VOID PhSipInitializeIoDialog ( VOID  )

Definition at line 3842 of file sysinfo.c.

VOID PhSipInitializeMemoryDialog ( VOID  )

Definition at line 3029 of file sysinfo.c.

VOID PhSipInitializeParameters ( VOID  )

Definition at line 902 of file sysinfo.c.

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

Definition at line 3879 of file sysinfo.c.

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

Definition at line 3952 of file sysinfo.c.

BOOLEAN PhSipIoSectionCallback ( _In_ PPH_SYSINFO_SECTION  Section,
_In_ PH_SYSINFO_SECTION_MESSAGE  Message,
_In_opt_ PVOID  Parameter1,
_In_opt_ PVOID  Parameter2 
)

Definition at line 3718 of file sysinfo.c.

VOID PhSipLayoutCpuGraphs ( VOID  )

Definition at line 2318 of file sysinfo.c.

VOID PhSipLayoutMemoryGraphs ( VOID  )

Definition at line 3231 of file sysinfo.c.

VOID PhSipLayoutSectionView ( VOID  )

Definition at line 1369 of file sysinfo.c.

VOID PhSipLayoutSummaryView ( VOID  )

Definition at line 1322 of file sysinfo.c.

NTSTATUS PhSipLoadMmAddresses ( _In_ PVOID  Parameter)

Definition at line 3628 of file sysinfo.c.

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

Definition at line 3084 of file sysinfo.c.

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

Definition at line 3200 of file sysinfo.c.

BOOLEAN PhSipMemorySectionCallback ( _In_ PPH_SYSINFO_SECTION  Section,
_In_ PH_SYSINFO_SECTION_MESSAGE  Message,
_In_opt_ PVOID  Parameter1,
_In_opt_ PVOID  Parameter2 
)

Definition at line 2870 of file sysinfo.c.

VOID PhSipNotifyCommitGraph ( _In_ NMHDR *  Header)

Definition at line 3300 of file sysinfo.c.

VOID PhSipNotifyCpuGraph ( _In_ ULONG  Index,
_In_ NMHDR *  Header 
)

Definition at line 2426 of file sysinfo.c.

VOID PhSipNotifyIoGraph ( _In_ NMHDR *  Header)

Definition at line 3971 of file sysinfo.c.

VOID PhSipNotifyPhysicalGraph ( _In_ NMHDR *  Header)

Definition at line 3368 of file sysinfo.c.

VOID PhSipOnCommand ( _In_ ULONG  Id,
_In_ ULONG  Code 
)

Definition at line 561 of file sysinfo.c.

VOID PhSipOnDestroy ( VOID  )

Definition at line 366 of file sysinfo.c.

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

Definition at line 738 of file sysinfo.c.

VOID PhSipOnInitDialog ( VOID  )

Definition at line 335 of file sysinfo.c.

VOID PhSipOnNcDestroy ( VOID  )

Definition at line 385 of file sysinfo.c.

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

Definition at line 631 of file sysinfo.c.

VOID PhSipOnShowWindow ( _In_ BOOLEAN  Showing,
_In_ ULONG  State 
)

Definition at line 412 of file sysinfo.c.

VOID PhSipOnSize ( VOID  )

Definition at line 531 of file sysinfo.c.

VOID PhSipOnSizing ( _In_ ULONG  Edge,
_In_ PRECT  DragRectangle 
)

Definition at line 546 of file sysinfo.c.

VOID PhSipOnThemeChanged ( VOID  )

Definition at line 554 of file sysinfo.c.

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

Definition at line 771 of file sysinfo.c.

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

Definition at line 1753 of file sysinfo.c.

NTSTATUS PhSipQueryProcessorPerformanceDistribution ( _Out_ PVOID *  Buffer)

Definition at line 2828 of file sysinfo.c.

PPH_PROCESS_RECORD PhSipReferenceMaxCpuRecord ( _In_ LONG  Index)

Definition at line 2637 of file sysinfo.c.

PPH_PROCESS_RECORD PhSipReferenceMaxIoRecord ( _In_ LONG  Index)

Definition at line 4138 of file sysinfo.c.

VOID PhSipRegisterDialog ( _In_ HWND  DialogWindowHandle)

Definition at line 882 of file sysinfo.c.

VOID PhSipRestoreSummaryView ( VOID  )

Definition at line 1533 of file sysinfo.c.

VOID PhSipSetAlwaysOnTop ( VOID  )

Definition at line 1919 of file sysinfo.c.

VOID PhSipSetOneGraphPerCpu ( VOID  )

Definition at line 2412 of file sysinfo.c.

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

Definition at line 248 of file sysinfo.c.

NTSTATUS PhSipSysInfoThreadStart ( _In_ PVOID  Parameter)

Definition at line 167 of file sysinfo.c.

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

Definition at line 1928 of file sysinfo.c.

VOID PhSipTickCpuDialog ( VOID  )

Definition at line 2098 of file sysinfo.c.

VOID PhSipTickIoDialog ( VOID  )

Definition at line 3862 of file sysinfo.c.

VOID PhSipTickMemoryDialog ( VOID  )

Definition at line 3062 of file sysinfo.c.

VOID PhSipUninitializeCpuDialog ( VOID  )

Definition at line 2074 of file sysinfo.c.

VOID PhSipUninitializeIoDialog ( VOID  )

Definition at line 3855 of file sysinfo.c.

VOID PhSipUninitializeMemoryDialog ( VOID  )

Definition at line 3054 of file sysinfo.c.

VOID PhSipUnregisterDialog ( _In_ HWND  DialogWindowHandle)

Definition at line 892 of file sysinfo.c.

VOID PhSipUpdateColorParameters ( VOID  )

Definition at line 982 of file sysinfo.c.

VOID PhSipUpdateCpuGraphs ( VOID  )

Definition at line 2546 of file sysinfo.c.

VOID PhSipUpdateCpuPanel ( VOID  )

Definition at line 2570 of file sysinfo.c.

VOID PhSipUpdateIoGraph ( VOID  )

Definition at line 4084 of file sysinfo.c.

VOID PhSipUpdateIoPanel ( VOID  )

Definition at line 4096 of file sysinfo.c.

VOID PhSipUpdateMemoryGraphs ( VOID  )

Definition at line 3436 of file sysinfo.c.

VOID PhSipUpdateMemoryPanel ( VOID  )

Definition at line 3455 of file sysinfo.c.

VOID PhSipUpdateThemeData ( VOID  )

Definition at line 1883 of file sysinfo.c.

VOID PhSiSetColorsGraphDrawInfo ( _Out_ PPH_GRAPH_DRAW_INFO  DrawInfo,
_In_ COLORREF  Color1,
_In_ COLORREF  Color2 
)

Definition at line 851 of file sysinfo.c.