ReactOS 0.4.16-dev-340-g0540c21
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}
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

◆ ServicesPageWndProc()

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

Definition at line 22 of file srvpage.c.

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
45
47 column.pszText = szTemp;
48 column.cx = 200;
50
53 column.pszText = szTemp;
54 column.cx = 70;
56
59 column.pszText = szTemp;
60 column.cx = 200;
62
65 column.pszText = szTemp;
66 column.cx = 70;
68
70 return TRUE;
71 }
72
73 return 0;
74}
#define IDS_SERVICES_COLUMN_VENDOR
Definition: resource.h:83
#define IDS_SERVICES_COLUMN_SERVICE
Definition: resource.h:81
#define IDS_SERVICES_COLUMN_REQ
Definition: resource.h:82
#define IDC_SERVICES_LIST
Definition: resource.h:17
#define IDS_SERVICES_COLUMN_STATUS
Definition: resource.h:84
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
HINSTANCE hInst
Definition: dxdiag.c:13
#define DWORD
Definition: nt_native.h:44
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:325
#define ListView_InsertColumn(hwnd, iCol, pcol)
Definition: commctrl.h:2641
#define LVCF_WIDTH
Definition: commctrl.h:2592
#define LVS_EX_CHECKBOXES
Definition: commctrl.h:2736
#define LVS_EX_FULLROWSELECT
Definition: commctrl.h:2739
#define LVM_GETEXTENDEDLISTVIEWSTYLE
Definition: commctrl.h:2732
#define LVCF_TEXT
Definition: commctrl.h:2593
#define LVM_SETEXTENDEDLISTVIEWSTYLE
Definition: commctrl.h:2729
#define LV_COLUMN
Definition: commctrl.h:2552
HWND hServicesListCtrl
Definition: srvpage.c:16
HWND hServicesDialog
Definition: srvpage.c:17
void GetServices(void)
Definition: srvpage.c:77
Definition: tftpd.h:60
#define SWP_NOACTIVATE
Definition: winuser.h:1245
BOOL WINAPI SetWindowPos(_In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
#define SWP_NOSIZE
Definition: winuser.h:1248
#define WM_INITDIALOG
Definition: winuser.h:1742
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
#define SendMessage
Definition: winuser.h:5855
#define LoadString
Definition: winuser.h:5831
#define SWP_NOOWNERZORDER
Definition: winuser.h:1252
#define SWP_NOZORDER
Definition: winuser.h:1250
char TCHAR
Definition: xmlstorage.h:189

Referenced by CreatePropSheet(), and OnCreate().