Resource sync from trunk.
[reactos.git] / reactos / dll / cpl / sysdm / precomp.h
1 #ifndef __CPL_PRECOMP_H
2 #define __CPL_PRECOMP_H
3
4 #include <windows.h>
5 #include <commctrl.h>
6 #include <tchar.h>
7 #include <lm.h>
8 #include <cpl.h>
9 #include <shellapi.h> //shellexecute
10 #include "resource.h"
11
12 #define NUM_APPLETS (1)
13
14 typedef LONG (CALLBACK *APPLET_INITPROC)(VOID);
15
16 typedef struct _APPLET
17 {
18 int idIcon;
19 int idName;
20 int idDescription;
21 APPLET_INITPROC AppletProc;
22 } APPLET, *PAPPLET;
23
24 extern HINSTANCE hApplet;
25
26 void ShowLastWin32Error(HWND hWndOwner);
27
28 /* prop sheet pages */
29 INT_PTR CALLBACK GeneralPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
30 INT_PTR CALLBACK ComputerPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
31 INT_PTR CALLBACK HardwarePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
32 INT_PTR CALLBACK AdvancedPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
33
34 /* dialogs */
35 INT_PTR CALLBACK HardProfDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
36 INT_PTR CALLBACK UserProfileDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
37 INT_PTR CALLBACK EnvironmentDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
38 INT_PTR CALLBACK StartRecDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
39 INT_PTR CALLBACK VirtMemDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
40 INT_PTR CALLBACK LicenceDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
41
42 typedef struct _PAGEFILE
43 {
44 TCHAR szDrive[3];
45 INT InitialValue;
46 INT MaxValue;
47 BOOL bUsed;
48 } PAGEFILE, *PPAGEFILE;
49
50 typedef struct _VIRTMEM
51 {
52 HWND hSelf;
53 HWND hListView;
54 LPTSTR szPagingFiles;
55 TCHAR szDrive[10];
56 INT Count;
57 BOOL bSave;
58 PAGEFILE Pagefile[26];
59 } VIRTMEM, *PVIRTMEM;
60
61
62 #endif /* __CPL_SYSDM_H */