f3b20cfbc57215806ce6b664ac74ac8860485333
[reactos.git] / reactos / dll / cpl / sysdm / precomp.h
1 #ifndef __CPL_PRECOMP_H
2 #define __CPL_PRECOMP_H
3
4 #include <ntstatus.h>
5 #define WIN32_NO_STATUS
6 #include <windows.h>
7 #include <commctrl.h>
8 #include <powrprof.h>
9 #include <tchar.h>
10 #include <stdio.h>
11 #include <cpl.h>
12 #include <shellapi.h>
13 #include <shlwapi.h>
14 #include <shlguid.h>
15 #include <shlobj.h>
16 #include <cplext.h>
17 #include <regstr.h>
18 #include <setupapi.h>
19 #include "resource.h"
20
21 #define NUM_APPLETS (1)
22
23 typedef LONG (CALLBACK *APPLET_INITPROC)(VOID);
24
25 typedef struct _APPLET
26 {
27 int idIcon;
28 int idName;
29 int idDescription;
30 APPLET_INITPROC AppletProc;
31 } APPLET, *PAPPLET;
32
33 extern HINSTANCE hApplet;
34
35 void ShowLastWin32Error(HWND hWndOwner);
36
37 /* prop sheet pages */
38 INT_PTR CALLBACK GeneralPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
39 INT_PTR CALLBACK HardwarePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
40 INT_PTR CALLBACK AdvancedPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
41
42 /* dialogs */
43 INT_PTR CALLBACK HardProfDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
44 INT_PTR CALLBACK UserProfileDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
45 INT_PTR CALLBACK EnvironmentDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
46 INT_PTR CALLBACK StartRecDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
47 INT_PTR CALLBACK VirtMemDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
48 INT_PTR CALLBACK LicenceDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
49
50 typedef struct _PAGEFILE
51 {
52 TCHAR szDrive[3];
53 UINT InitialSize;
54 UINT MaximumSize;
55 UINT FreeSize;
56 BOOL bUsed;
57 } PAGEFILE, *PPAGEFILE;
58
59 typedef struct _VIRTMEM
60 {
61 HWND hSelf;
62 HWND hListBox;
63 LPTSTR szPagingFiles;
64 TCHAR szDrive[10];
65 INT Count;
66 BOOL bSave;
67 PAGEFILE Pagefile[26];
68 } VIRTMEM, *PVIRTMEM;
69
70 typedef struct _BOOTRECORD
71 {
72 DWORD BootType;
73 WCHAR szSectionName[128];
74 WCHAR szBootPath[MAX_PATH];
75 WCHAR szOptions[512];
76
77 }BOOTRECORD, *PBOOTRECORD;
78
79 #endif /* __CPL_SYSDM_H */