Process Hacker
options.c File Reference
#include <phapp.h>
#include <settings.h>
#include <colorbox.h>
#include <sysinfo.h>
#include <windowsx.h>

Go to the source code of this file.

Macros

#define WM_PH_CHILD_EXIT   (WM_APP + 301)
 
#define SetDlgItemCheckForSetting(hwndDlg, Id, Name)   Button_SetCheck(GetDlgItem(hwndDlg, Id), PhGetIntegerSetting(Name) ? BST_CHECKED : BST_UNCHECKED)
 
#define SetSettingForDlgItemCheck(hwndDlg, Id, Name)   PhSetIntegerSetting(Name, Button_GetCheck(GetDlgItem(hwndDlg, Id)) == BST_CHECKED)
 
#define SetSettingForDlgItemCheckRestartRequired(hwndDlg, Id, Name)
 
#define DialogChanged   PropSheet_Changed(GetParent(hwndDlg), hwndDlg)
 
#define CROSS_INDEX   0
 
#define TICK_INDEX   1
 
#define COLOR_ITEM(SettingName, Name, Description)   { SettingName, L"Use" SettingName, Name, Description }
 

Typedefs

typedef struct _COLOR_ITEM COLOR_ITEM
 
typedef struct _COLOR_ITEM * PCOLOR_ITEM
 

Functions

INT CALLBACK PhpOptionsPropSheetProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ LPARAM lParam)
 
LRESULT CALLBACK PhpOptionsWndProc (_In_ HWND hwnd, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
INT_PTR CALLBACK PhpOptionsGeneralDlgProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
INT_PTR CALLBACK PhpOptionsAdvancedDlgProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
INT_PTR CALLBACK PhpOptionsSymbolsDlgProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
INT_PTR CALLBACK PhpOptionsHighlightingDlgProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
INT_PTR CALLBACK PhpOptionsGraphsDlgProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
VOID PhShowOptionsDialog (_In_ HWND ParentWindowHandle)
 
VOID PhpAdvancedPageLoad (_In_ HWND hwndDlg)
 
VOID PhpAdvancedPageSave (_In_ HWND hwndDlg)
 
NTSTATUS PhpElevateAdvancedThreadStart (_In_ PVOID Parameter)
 
COLORREF NTAPI PhpColorItemColorFunction (_In_ INT Index, _In_ PVOID Param, _In_opt_ PVOID Context)
 

Macro Definition Documentation

#define COLOR_ITEM (   SettingName,
  Name,
  Description 
)    { SettingName, L"Use" SettingName, Name, Description }

Definition at line 930 of file options.c.

#define CROSS_INDEX   0

Definition at line 916 of file options.c.

#define DialogChanged   PropSheet_Changed(GetParent(hwndDlg), hwndDlg)

Definition at line 360 of file options.c.

#define SetDlgItemCheckForSetting (   hwndDlg,
  Id,
  Name 
)    Button_SetCheck(GetDlgItem(hwndDlg, Id), PhGetIntegerSetting(Name) ? BST_CHECKED : BST_UNCHECKED)

Definition at line 348 of file options.c.

#define SetSettingForDlgItemCheck (   hwndDlg,
  Id,
  Name 
)    PhSetIntegerSetting(Name, Button_GetCheck(GetDlgItem(hwndDlg, Id)) == BST_CHECKED)

Definition at line 350 of file options.c.

#define SetSettingForDlgItemCheckRestartRequired (   hwndDlg,
  Id,
  Name 
)
Value:
do { \
BOOLEAN __oldValue = !!PhGetIntegerSetting(Name); \
BOOLEAN __newValue = Button_GetCheck(GetDlgItem(hwndDlg, Id)) == BST_CHECKED; \
if (__newValue != __oldValue) \
RestartRequired = TRUE; \
PhSetIntegerSetting(Name, __newValue); \
} while (0)

Definition at line 352 of file options.c.

#define TICK_INDEX   1

Definition at line 917 of file options.c.

#define WM_PH_CHILD_EXIT   (WM_APP + 301)

Definition at line 29 of file options.c.

Typedef Documentation

typedef struct _COLOR_ITEM COLOR_ITEM
typedef struct _COLOR_ITEM * PCOLOR_ITEM

Function Documentation

VOID PhpAdvancedPageLoad ( _In_ HWND  hwndDlg)

Definition at line 550 of file options.c.

VOID PhpAdvancedPageSave ( _In_ HWND  hwndDlg)

Definition at line 633 of file options.c.

COLORREF NTAPI PhpColorItemColorFunction ( _In_ INT  Index,
_In_ PVOID  Param,
_In_opt_ PVOID  Context 
)

Definition at line 954 of file options.c.

NTSTATUS PhpElevateAdvancedThreadStart ( _In_ PVOID  Parameter)

Definition at line 707 of file options.c.

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

Definition at line 730 of file options.c.

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

Definition at line 384 of file options.c.

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

Definition at line 1104 of file options.c.

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

Definition at line 965 of file options.c.

INT CALLBACK PhpOptionsPropSheetProc ( _In_ HWND  hwndDlg,
_In_ UINT  uMsg,
_In_ LPARAM  lParam 
)

Definition at line 223 of file options.c.

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

Definition at line 831 of file options.c.

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

Definition at line 299 of file options.c.

VOID PhShowOptionsDialog ( _In_ HWND  ParentWindowHandle)

Definition at line 99 of file options.c.