ReactOS  0.4.12-dev-18-gf469aca
srvpage.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

DWORD GetServicesActivation (VOID)
 
INT_PTR CALLBACK ServicesPageWndProc (HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
 

Function Documentation

◆ GetServicesActivation()

DWORD GetServicesActivation ( VOID  )

Definition at line 30 of file srvpage.cpp.

31 {
32  DWORD dwServices = 0;
33  RegGetDWORDValue(HKEY_LOCAL_MACHINE, L"SOFTWARE\\Microsoft\\Shared Tools\\MSConfig\\state", L"services", &dwServices);
34  return dwServices;
35 }
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

◆ ServicesPageWndProc()

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

Definition at line 22 of file srvpage.c.

Referenced by CreatePropSheet(), and OnCreate().

23 {
25  TCHAR szTemp[256];
26  DWORD dwStyle;
27 
30 
31  switch (message) {
32  case WM_INITDIALOG:
33 
35  hServicesDialog = hDlg;
36 
38  dwStyle = dwStyle | LVS_EX_FULLROWSELECT | LVS_EX_CHECKBOXES;
40 
42 
43  // Initialize the application page's controls
44  column.mask = LVCF_TEXT | LVCF_WIDTH;
45 
47  column.pszText = szTemp;
48  column.cx = 200;
50 
51  column.mask = LVCF_TEXT | LVCF_WIDTH;
53  column.pszText = szTemp;
54  column.cx = 70;
56 
57  column.mask = LVCF_TEXT | LVCF_WIDTH;
59  column.pszText = szTemp;
60  column.cx = 200;
62 
63  column.mask = LVCF_TEXT | LVCF_WIDTH;
65  column.pszText = szTemp;
66  column.cx = 70;
68 
69  GetServices();
70  return TRUE;
71  }
72 
73  return 0;
74 }
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 IDC_SERVICES_LIST
Definition: resource.h:17
#define LVCF_TEXT
Definition: commctrl.h:2558
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:323
#define DWORD
Definition: msvc.h:34
#define LV_COLUMN
Definition: commctrl.h:2517
#define IDS_SERVICES_COLUMN_REQ
Definition: resource.h:82
#define LVS_EX_FULLROWSELECT
Definition: commctrl.h:2704
#define SWP_NOZORDER
Definition: winuser.h:1232
WPARAM wParam
Definition: combotst.c:138
#define ListView_InsertColumn(hwnd, iCol, pcol)
Definition: commctrl.h:2606
smooth NULL
Definition: ftsmooth.c:416
#define IDS_SERVICES_COLUMN_STATUS
Definition: resource.h:84
char TCHAR
Definition: xmlstorage.h:189
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
HWND hServicesListCtrl
Definition: srvpage.c:16
#define LVM_GETEXTENDEDLISTVIEWSTYLE
Definition: commctrl.h:2697
#define SWP_NOSIZE
Definition: winuser.h:1230
HINSTANCE hInst
Definition: dxdiag.c:13
HWND hServicesDialog
Definition: srvpage.c:17
void GetServices(void)
Definition: srvpage.c:77
#define SendMessage
Definition: winuser.h:5709
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_SERVICES_COLUMN_SERVICE
Definition: resource.h:81
#define IDS_SERVICES_COLUMN_VENDOR
Definition: resource.h:83
#define WM_INITDIALOG
Definition: winuser.h:1715
LPARAM lParam
Definition: combotst.c:139
#define LoadString
Definition: winuser.h:5685
#define SWP_NOOWNERZORDER
Definition: winuser.h:1234