ReactOS 0.4.16-dev-320-g3bd9ddc
advanced.c File Reference
#include "precomp.h"
Include dependency graph for advanced.c:

Go to the source code of this file.

Functions

static VOID OnOK (HWND hwndDlg)
 
static VOID OnInitSysSettingsDialog (HWND hwndDlg)
 
INT_PTR CALLBACK SysSettingsDlgProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
 
INT_PTR CALLBACK AdvancedPageProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
 

Variables

static TCHAR BugLink [] = _T("http://jira.reactos.org/")
 
static TCHAR ReportAsWorkstationKey [] = _T("SYSTEM\\CurrentControlSet\\Control\\ReactOS\\Settings\\Version")
 

Function Documentation

◆ AdvancedPageProc()

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

Definition at line 121 of file advanced.c.

125{
127
128 switch (uMsg)
129 {
130 case WM_INITDIALOG:
131 break;
132
133 case WM_COMMAND:
134 {
135 switch (LOWORD(wParam))
136 {
137 case IDC_PERFOR:
140 hwndDlg,
142 break;
143
144 case IDC_USERPROFILE:
147 hwndDlg,
149 break;
150
151 case IDC_STAREC:
154 hwndDlg,
156 break;
157
158 case IDC_SYSSETTINGS:
161 hwndDlg,
163 break;
164
165 case IDC_ENVVAR:
168 hwndDlg,
170 break;
171
172 case IDC_ERRORREPORT:
174 _T("open"),
175 BugLink,
176 NULL,
177 NULL,
179 break;
180 }
181 }
182
183 break;
184 }
185
186 return FALSE;
187}
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
#define NULL
Definition: types.h:112
#define FALSE
Definition: types.h:117
HINSTANCE hApplet
Definition: access.c:17
static TCHAR BugLink[]
Definition: advanced.c:13
INT_PTR CALLBACK SysSettingsDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: advanced.c:87
INT_PTR CALLBACK EnvironmentDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: environment.c:1823
INT_PTR CALLBACK UserProfileDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: userprofile.c:810
INT_PTR CALLBACK VirtMemDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: virtmem.c:821
INT_PTR CALLBACK StartRecDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: startrec.c:695
#define IDD_SYSSETTINGS
Definition: resource.h:102
#define IDC_USERPROFILE
Definition: resource.h:98
#define IDC_ERRORREPORT
Definition: resource.h:99
#define IDC_ENVVAR
Definition: resource.h:95
#define IDD_USERPROFILE
Definition: resource.h:106
#define IDD_ENVIRONMENT_VARIABLES
Definition: resource.h:128
#define IDC_SYSSETTINGS
Definition: resource.h:94
#define IDD_VIRTMEM
Definition: resource.h:156
#define IDC_STAREC
Definition: resource.h:96
#define IDD_STARTUPRECOVERY
Definition: resource.h:173
#define IDC_PERFOR
Definition: resource.h:97
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:325
#define LOWORD(l)
Definition: pedump.c:82
#define ShellExecute
Definition: shellapi.h:694
#define _T(x)
Definition: vfdio.h:22
#define SW_SHOWNORMAL
Definition: winuser.h:773
#define WM_COMMAND
Definition: winuser.h:1743
#define WM_INITDIALOG
Definition: winuser.h:1742
#define MAKEINTRESOURCE
Definition: winuser.h:591
#define DialogBox
Definition: winuser.h:5773

◆ OnInitSysSettingsDialog()

static VOID OnInitSysSettingsDialog ( HWND  hwndDlg)
static

Definition at line 51 of file advanced.c.

52{
53 HKEY hKey;
54 DWORD dwVal;
55 DWORD dwType = REG_DWORD;
56 DWORD cbData = sizeof(DWORD);
57
60 0,
63 {
65 _T("ReportAsWorkstation"),
66 0,
67 &dwType,
68 (LPBYTE)&dwVal,
69 &cbData) == ERROR_SUCCESS)
70 {
71 if (dwVal != FALSE)
72 {
73 // set the check box
74 SendDlgItemMessageW(hwndDlg,
78 0);
79 }
80 }
81
83 }
84}
#define RegCloseKey(hKey)
Definition: registry.h:49
#define ERROR_SUCCESS
Definition: deptool.c:10
static TCHAR ReportAsWorkstationKey[]
Definition: advanced.c:14
#define IDC_REPORTASWORKSTATION
Definition: resource.h:103
unsigned long DWORD
Definition: ntddk_ex.h:95
FxAutoRegKey hKey
#define KEY_READ
Definition: nt_native.h:1023
#define DWORD
Definition: nt_native.h:44
#define REG_DWORD
Definition: sdbapi.c:596
unsigned char * LPBYTE
Definition: typedefs.h:53
#define HKEY_LOCAL_MACHINE
Definition: winreg.h:12
#define RegOpenKeyEx
Definition: winreg.h:520
#define RegQueryValueEx
Definition: winreg.h:524
#define BM_SETCHECK
Definition: winuser.h:1924
LRESULT WINAPI SendDlgItemMessageW(_In_ HWND, _In_ int, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
#define BST_CHECKED
Definition: winuser.h:197

Referenced by SysSettingsDlgProc().

◆ OnOK()

static VOID OnOK ( HWND  hwndDlg)
static

Definition at line 18 of file advanced.c.

19{
20 HKEY hKey;
21 DWORD ReportAsWorkstation;
22
23 ReportAsWorkstation = (SendDlgItemMessageW(hwndDlg,
26 0,
27 0) == BST_CHECKED);
28
31 0,
32 NULL,
33 0,
35 NULL,
36 &hKey,
38 {
40 _T("ReportAsWorkstation"),
41 0,
43 (LPBYTE)&ReportAsWorkstation,
44 sizeof(DWORD));
45
47 }
48}
#define KEY_WRITE
Definition: nt_native.h:1031
#define RegSetValueEx
Definition: winreg.h:533
#define RegCreateKeyEx
Definition: winreg.h:501
#define BM_GETCHECK
Definition: winuser.h:1921

Referenced by SysSettingsDlgProc().

◆ SysSettingsDlgProc()

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

Definition at line 87 of file advanced.c.

91{
93
94 switch (uMsg)
95 {
96 case WM_INITDIALOG:
98 break;
99
100 case WM_COMMAND:
101 switch (LOWORD(wParam))
102 {
103 case IDOK:
104 OnOK(hwndDlg);
105 EndDialog(hwndDlg, 0);
106 return TRUE;
107
108 case IDCANCEL:
109 EndDialog(hwndDlg, 0);
110 return TRUE;
111 }
112 break;
113 }
114
115 return FALSE;
116}
#define TRUE
Definition: types.h:120
static VOID OnInitSysSettingsDialog(HWND hwndDlg)
Definition: advanced.c:51
static VOID OnOK(HWND hwndDlg)
Definition: advanced.c:18
#define IDCANCEL
Definition: winuser.h:834
#define IDOK
Definition: winuser.h:833
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)

Referenced by AdvancedPageProc().

Variable Documentation

◆ BugLink

TCHAR BugLink[] = _T("http://jira.reactos.org/")
static

Definition at line 13 of file advanced.c.

Referenced by AdvancedPageProc().

◆ ReportAsWorkstationKey

TCHAR ReportAsWorkstationKey[] = _T("SYSTEM\\CurrentControlSet\\Control\\ReactOS\\Settings\\Version")
static

Definition at line 14 of file advanced.c.

Referenced by OnInitSysSettingsDialog(), and OnOK().