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