xref: /reactos/dll/cpl/sysdm/precomp.h (revision 3e1f4074)
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 <windowsx.h>
17 #include <tchar.h>
18 #include <shellapi.h>
19 #include <shlobj.h>
20 #include <shlwapi.h>
21 #include <setupapi.h>
22 #include <cpl.h>
23 
24 #include "resource.h"
25 
26 #define NUM_APPLETS (1)
27 
28 typedef struct _APPLET
29 {
30   int idIcon;
31   int idName;
32   int idDescription;
33   APPLET_PROC AppletProc;
34 } APPLET, *PAPPLET;
35 
36 extern HINSTANCE hApplet;
37 
38 void ShowLastWin32Error(HWND hWndOwner);
39 
40 /* Prop sheet pages */
41 INT_PTR CALLBACK GeneralPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
42 INT_PTR CALLBACK HardwarePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
43 INT_PTR CALLBACK AdvancedPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
44 
45 /* Dialogs */
46 INT_PTR CALLBACK HardProfDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
47 INT_PTR CALLBACK UserProfileDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
48 INT_PTR CALLBACK EnvironmentDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
49 INT_PTR CALLBACK StartRecDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
50 INT_PTR CALLBACK VirtMemDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
51 INT_PTR CALLBACK LicenceDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
52 
53 /* System information */
54 BOOL GetSystemName(PWSTR pBuf, SIZE_T cchBuf);
55 
56 typedef struct _PAGEFILE
57 {
58     TCHAR  szDrive[3];
59     LPTSTR pszVolume;
60     INT    OldMinSize;
61     INT    OldMaxSize;
62     INT    NewMinSize;
63     INT    NewMaxSize;
64     UINT   FreeSize;
65     BOOL   bUsed;
66 } PAGEFILE, *PPAGEFILE;
67 
68 typedef struct _VIRTMEM
69 {
70     HWND   hSelf;
71     HWND   hListBox;
72     LPTSTR szPagingFiles;
73     TCHAR  szDrive[10];
74     INT    Count;
75     BOOL   bModified;
76     PAGEFILE  Pagefile[26];
77 } VIRTMEM, *PVIRTMEM;
78 
79 typedef struct _BOOTRECORD
80 {
81   DWORD BootType;
82   WCHAR szSectionName[128];
83   WCHAR szBootPath[MAX_PATH];
84   WCHAR szOptions[512];
85 
86 }BOOTRECORD, *PBOOTRECORD;
87 
88 INT
89 ResourceMessageBox(
90     IN HINSTANCE hInstance,
91     IN HWND hwnd,
92     IN UINT uType,
93     IN UINT uCaption,
94     IN UINT uText);
95 
96 
97 #endif /* __CPL_SYSDM_H */
98