ReactOS  0.4.11-dev-946-g431643b
startuppage.h File Reference

Go to the source code of this file.

Functions

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

Variables

HWND hStartupPage
 
HWND hStartupListCtrl
 

Function Documentation

◆ StartupPageWndProc()

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

Definition at line 20 of file startuppage.c.

Referenced by CreatePropSheet(), and OnCreate().

21 {
23  TCHAR szTemp[256];
24  DWORD dwStyle;
25 
28 
29  switch (message) {
30  case WM_INITDIALOG:
31 
33  hStartupDialog = hDlg;
34 
36  dwStyle = dwStyle | LVS_EX_FULLROWSELECT | LVS_EX_CHECKBOXES;
38 
40 
41  // Initialize the application page's controls
42  column.mask = LVCF_TEXT | LVCF_WIDTH;
43 
45  column.pszText = szTemp;
46  column.cx = 150;
48 
49  column.mask = LVCF_TEXT | LVCF_WIDTH;
51  column.pszText = szTemp;
52  column.cx = 150;
54 
55  column.mask = LVCF_TEXT | LVCF_WIDTH;
57  column.pszText = szTemp;
58  column.cx = 250;
60 
61  GetAutostartEntriesFromRegistry(HKEY_LOCAL_MACHINE, _T("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run"));
62  GetAutostartEntriesFromRegistry(HKEY_CURRENT_USER, _T("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run"));
63  GetDisabledAutostartEntriesFromRegistry (_T("SOFTWARE\\Microsoft\\Shared Tools\\MSConfig\\startupreg"));
64  GetDisabledAutostartEntriesFromRegistry (_T("SOFTWARE\\Microsoft\\Shared Tools\\MSConfig\\startupfolder"));
65 
66  //FIXME: What about HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Userinit
67  //FIXME: Common Startup (startmenu)
68 
69  return TRUE;
70  }
71 
72  return 0;
73 }
void GetAutostartEntriesFromRegistry(HKEY hRootKey, TCHAR *KeyName)
Definition: startuppage.c:149
void GetDisabledAutostartEntriesFromRegistry(TCHAR *szBasePath)
Definition: startuppage.c:77
Definition: tftpd.h:59
#define TRUE
Definition: types.h:120
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
Definition: typeof.h:47
#define LVCF_WIDTH
Definition: commctrl.h:2557
#define LVCF_TEXT
Definition: commctrl.h:2558
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:323
#define DWORD
Definition: msvc.h:34
#define IDS_STARTUP_COLUMN_PATH
Definition: resource.h:87
#define HKEY_CURRENT_USER
Definition: winreg.h:11
#define LV_COLUMN
Definition: commctrl.h:2517
#define LVS_EX_FULLROWSELECT
Definition: commctrl.h:2704
#define SWP_NOZORDER
Definition: winuser.h:1232
WPARAM wParam
Definition: combotst.c:138
HWND hStartupDialog
Definition: startuppage.c:14
#define ListView_InsertColumn(hwnd, iCol, pcol)
Definition: commctrl.h:2606
smooth NULL
Definition: ftsmooth.c:416
char TCHAR
Definition: xmlstorage.h:189
#define _T(x)
Definition: vfdio.h:22
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
#define SWP_NOACTIVATE
Definition: winuser.h:1227
unsigned long DWORD
Definition: ntddk_ex.h:95
#define LVM_SETEXTENDEDLISTVIEWSTYLE
Definition: commctrl.h:2694
#define LVS_EX_CHECKBOXES
Definition: commctrl.h:2701
#define LVM_GETEXTENDEDLISTVIEWSTYLE
Definition: commctrl.h:2697
#define SWP_NOSIZE
Definition: winuser.h:1230
HINSTANCE hInst
Definition: dxdiag.c:13
#define IDC_STARTUP_LIST
Definition: resource.h:19
#define SendMessage
Definition: winuser.h:5709
#define IDS_STARTUP_COLUMN_CMD
Definition: resource.h:86
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
GLenum GLenum GLvoid GLvoid * column
Definition: glext.h:5664
#define IDS_STARTUP_COLUMN_ELEMENT
Definition: resource.h:85
#define WM_INITDIALOG
Definition: winuser.h:1715
LPARAM lParam
Definition: combotst.c:139
#define LoadString
Definition: winuser.h:5685
HWND hStartupListCtrl
Definition: startuppage.c:13
#define SWP_NOOWNERZORDER
Definition: winuser.h:1234
#define HKEY_LOCAL_MACHINE
Definition: winreg.h:12

Variable Documentation

◆ hStartupListCtrl

HWND hStartupListCtrl

Definition at line 13 of file startuppage.c.

Referenced by MsConfigWndProc().

◆ hStartupPage

HWND hStartupPage

Definition at line 12 of file startuppage.c.

Referenced by MsConfig_OnTabWndSelChange(), MsConfigWndProc(), and OnCreate().