ReactOS 0.4.15-dev-7918-g2a2556c
systempage.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

DWORD GetSystemIniActivation (VOID)
 
DWORD GetWinIniActivation (VOID)
 
INT_PTR CALLBACK SystemPageWndProc (HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
 
INT_PTR CALLBACK WinPageWndProc (HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
 

Variables

LPCWSTR lpszSystemIni
 
LPCWSTR lpszWinIni
 

Function Documentation

◆ GetSystemIniActivation()

DWORD GetSystemIniActivation ( VOID  )

Definition at line 34 of file systempage.cpp.

35{
36 DWORD dwSystemIni = 0;
37 RegGetDWORDValue(HKEY_LOCAL_MACHINE, L"SOFTWARE\\Microsoft\\Shared Tools\\MSConfig\\state", L"system.ini", &dwSystemIni);
38 return dwSystemIni;
39}
unsigned long DWORD
Definition: ntddk_ex.h:95
#define L(x)
Definition: ntvdm.h:50
LONG RegGetDWORDValue(IN HKEY hKey, IN LPCWSTR lpSubKey OPTIONAL, IN LPCWSTR lpValue OPTIONAL, OUT LPDWORD lpData OPTIONAL)
Definition: regutils.c:95
#define HKEY_LOCAL_MACHINE
Definition: winreg.h:12

◆ GetWinIniActivation()

DWORD GetWinIniActivation ( VOID  )

Definition at line 41 of file systempage.cpp.

42{
43 DWORD dwWinIni = 0;
44 RegGetDWORDValue(HKEY_LOCAL_MACHINE, L"SOFTWARE\\Microsoft\\Shared Tools\\MSConfig\\state", L"win.ini", &dwWinIni);
45 return dwWinIni;
46}

◆ SystemPageWndProc()

INT_PTR CALLBACK SystemPageWndProc ( HWND  hDlg,
UINT  message,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 393 of file system.c.

394{
397 switch (message)
398 {
399 case WM_INITDIALOG:
400 {
403 return TRUE;
404 }
405 }
406
407 return FALSE;
408}
static VOID InitializeSystemPage(HWND hwndDlg)
Definition: system.c:186
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317
Definition: tftpd.h:60
#define SWP_NOACTIVATE
Definition: winuser.h:1242
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
#define SWP_NOSIZE
Definition: winuser.h:1245
#define WM_INITDIALOG
Definition: winuser.h:1739
#define SWP_NOOWNERZORDER
Definition: winuser.h:1249
#define SWP_NOZORDER
Definition: winuser.h:1247

◆ WinPageWndProc()

INT_PTR CALLBACK WinPageWndProc ( HWND  hDlg,
UINT  message,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 882 of file systempage.cpp.

883{
884 static LPCWSTR lpszIniFile = NULL;
885
886 if (message == WM_INITDIALOG)
887 lpszIniFile = (LPCWSTR)((LPPROPSHEETPAGE)lParam)->lParam;
888
889 if ( (message == WM_NOTIFY) && (((LPNMHDR)lParam)->code == PSN_APPLY) )
890 wParam = (WPARAM)lpszIniFile;
891
892 return CommonWndProc(hDlg, message, wParam, lParam);
893}
#define PSN_APPLY
Definition: prsht.h:117
#define LPPROPSHEETPAGE
Definition: prsht.h:390
#define WM_NOTIFY
Definition: richedit.h:61
INT_PTR CommonWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
Definition: systempage.cpp:484
UINT_PTR WPARAM
Definition: windef.h:207
struct tagNMHDR * LPNMHDR
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185

Referenced by CreatePropSheet().

Variable Documentation

◆ lpszSystemIni

LPCWSTR lpszSystemIni
extern

Definition at line 23 of file systempage.cpp.

Referenced by CreatePropSheet().

◆ lpszWinIni

LPCWSTR lpszWinIni
extern

Definition at line 24 of file systempage.cpp.

Referenced by CreatePropSheet().