Merge 25584, 25588.
[reactos.git] / reactos / dll / cpl / sysdm / precomp.h
1 #ifndef __CPL_PRECOMP_H
2 #define __CPL_PRECOMP_H
3
4 #include <windows.h>
5 #include <commctrl.h>
6 #include <tchar.h>
7 #include <stdio.h>
8 #include <lm.h>
9 #include <cpl.h>
10 #include <shellapi.h>
11 #include <shlwapi.h>
12 #include "resource.h"
13
14 #define NUM_APPLETS (1)
15
16 typedef LONG (CALLBACK *APPLET_INITPROC)(VOID);
17
18 typedef struct _APPLET
19 {
20 int idIcon;
21 int idName;
22 int idDescription;
23 APPLET_INITPROC AppletProc;
24 } APPLET, *PAPPLET;
25
26 extern HINSTANCE hApplet;
27
28 void ShowLastWin32Error(HWND hWndOwner);
29
30 /* prop sheet pages */
31 INT_PTR CALLBACK GeneralPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
32 INT_PTR CALLBACK ComputerPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
33 INT_PTR CALLBACK HardwarePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
34 INT_PTR CALLBACK AdvancedPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
35
36 /* dialogs */
37 INT_PTR CALLBACK HardProfDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
38 INT_PTR CALLBACK UserProfileDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
39 INT_PTR CALLBACK EnvironmentDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
40 INT_PTR CALLBACK StartRecDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
41 INT_PTR CALLBACK VirtMemDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
42 INT_PTR CALLBACK LicenceDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
43
44 BOOL TextToLink(HWND hwnd, LPTSTR lpApp, LPTSTR lpParams);
45
46 typedef struct _PAGEFILE
47 {
48 TCHAR szDrive[3];
49 INT InitialValue;
50 INT MaxValue;
51 BOOL bUsed;
52 } PAGEFILE, *PPAGEFILE;
53
54 typedef struct _VIRTMEM
55 {
56 HWND hSelf;
57 HWND hListView;
58 LPTSTR szPagingFiles;
59 TCHAR szDrive[10];
60 INT Count;
61 BOOL bSave;
62 PAGEFILE Pagefile[26];
63 } VIRTMEM, *PVIRTMEM;
64
65
66 #endif /* __CPL_SYSDM_H */