[KSPROXY]
[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 INT InitialValue;
54 INT MaxValue;
55 BOOL bUsed;
56 } PAGEFILE, *PPAGEFILE;
57
58 typedef struct _VIRTMEM
59 {
60 HWND hSelf;
61 HWND hListBox;
62 LPTSTR szPagingFiles;
63 TCHAR szDrive[10];
64 INT Count;
65 BOOL bSave;
66 PAGEFILE Pagefile[26];
67 } VIRTMEM, *PVIRTMEM;
68
69 typedef struct _BOOTRECORD
70 {
71 DWORD BootType;
72 WCHAR szSectionName[128];
73 WCHAR szBootPath[MAX_PATH];
74 WCHAR szOptions[512];
75
76 }BOOTRECORD, *PBOOTRECORD;
77
78 #endif /* __CPL_SYSDM_H */