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