xref: /reactos/dll/cpl/sysdm/precomp.h (revision 09dde2cf)
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 <strsafe.h>
25 
26 #include "resource.h"
27 
28 #define NUM_APPLETS (1)
29 
30 typedef struct _APPLET
31 {
32     int idIcon;
33     int idName;
34     int idDescription;
35     APPLET_PROC 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 /* System information */
56 BOOL GetSystemName(PWSTR pBuf, SIZE_T cchBuf);
57 
58 #define MAX_STR_LENGTH  256
59 
60 INT __cdecl
61 ResourceMessageBox(
62     _In_opt_ HINSTANCE hInstance,
63     _In_opt_ HWND hwnd,
64     _In_ UINT uType,
65     _In_ UINT uCaption,
66     _In_ UINT uText,
67     ...);
68 
69 #endif /* __CPL_SYSDM_H */
70