ReactOS  0.4.11-dev-946-g431643b
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 }
LONG RegGetDWORDValue(IN HKEY hKey, IN LPCWSTR lpSubKey OPTIONAL, IN LPCWSTR lpValue OPTIONAL, OUT LPDWORD lpData OPTIONAL)
Definition: regutils.c:95
unsigned long DWORD
Definition: ntddk_ex.h:95
static const WCHAR L[]
Definition: oid.c:1087
#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 }
LONG RegGetDWORDValue(IN HKEY hKey, IN LPCWSTR lpSubKey OPTIONAL, IN LPCWSTR lpValue OPTIONAL, OUT LPDWORD lpData OPTIONAL)
Definition: regutils.c:95
unsigned long DWORD
Definition: ntddk_ex.h:95
static const WCHAR L[]
Definition: oid.c:1087
#define HKEY_LOCAL_MACHINE
Definition: winreg.h:12

◆ SystemPageWndProc()

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

Definition at line 383 of file system.c.

384 {
387  switch (message)
388  {
389  case WM_INITDIALOG:
390  {
392  InitializeSystemPage(hDlg);
393  return TRUE;
394  }
395  }
396 
397  return FALSE;
398 }
static VOID InitializeSystemPage(HWND hwndDlg)
Definition: system.c:186
Definition: tftpd.h:59
#define TRUE
Definition: types.h:120
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:323
#define SWP_NOZORDER
Definition: winuser.h:1232
WPARAM wParam
Definition: combotst.c:138
smooth NULL
Definition: ftsmooth.c:416
#define SWP_NOACTIVATE
Definition: winuser.h:1227
#define SWP_NOSIZE
Definition: winuser.h:1230
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
#define WM_INITDIALOG
Definition: winuser.h:1715
LPARAM lParam
Definition: combotst.c:139
#define SWP_NOOWNERZORDER
Definition: winuser.h:1234

◆ WinPageWndProc()

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

Definition at line 882 of file systempage.cpp.

Referenced by CreatePropSheet().

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 }
Definition: tftpd.h:59
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
#define PSN_APPLY
Definition: prsht.h:117
WPARAM wParam
Definition: combotst.c:138
struct tagNMHDR * LPNMHDR
#define LPPROPSHEETPAGE
Definition: prsht.h:372
smooth NULL
Definition: ftsmooth.c:416
INT_PTR CommonWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
Definition: systempage.cpp:484
#define WPARAM
Definition: msvc.h:37
#define WM_INITDIALOG
Definition: winuser.h:1715
LPARAM lParam
Definition: combotst.c:139
#define WM_NOTIFY
Definition: richedit.h:61
#define LPCWSTR
Definition: msvc.h:45

Variable Documentation

◆ lpszSystemIni

LPCWSTR lpszSystemIni

Definition at line 23 of file systempage.cpp.

Referenced by CreatePropSheet().

◆ lpszWinIni

LPCWSTR lpszWinIni

Definition at line 24 of file systempage.cpp.

Referenced by CreatePropSheet().