Reactos
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#define COBJMACROS
9
10#include <ntstatus.h>
11#define WIN32_NO_STATUS
12#include <windef.h>
13#include <winbase.h>
14#include <winreg.h>
15#include <wingdi.h>
16#include <wincon.h>
17#include <windowsx.h>
18#include <tchar.h>
19#include <shellapi.h>
20#include <shlobj.h>
21#include <shlwapi.h>
22#include <setupapi.h>
23#include <cpl.h>
24
25#include <strsafe.h>
26
27#include "resource.h"
28
29#define NUM_APPLETS (1)
30
31typedef struct _APPLET
32{
33 int idIcon;
34 int idName;
35 int idDescription;
36 APPLET_PROC AppletProc;
37} APPLET, *PAPPLET;
38
39extern HINSTANCE hApplet;
40
41void ShowLastWin32Error(HWND hWndOwner);
42
43/* Prop sheet pages */
44INT_PTR CALLBACK GeneralPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
45INT_PTR CALLBACK HardwarePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
46INT_PTR CALLBACK AdvancedPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
47VOID ShowPerformanceOptions(HWND hDlg);
48
49/* Dialogs */
50INT_PTR CALLBACK HardProfDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
51INT_PTR CALLBACK UserProfileDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
52INT_PTR CALLBACK EnvironmentDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
53INT_PTR CALLBACK StartRecDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
54INT_PTR CALLBACK VirtMemDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
55INT_PTR CALLBACK LicenceDlgProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam);
56
57/* System information */
58BOOL GetSystemName(PWSTR pBuf, SIZE_T cchBuf);
59
60#define MAX_STR_LENGTH 256
61
62INT __cdecl
63ResourceMessageBox(
64 _In_opt_ HINSTANCE hInstance,
65 _In_opt_ HWND hwnd,
66 _In_ UINT uType,
67 _In_ UINT uCaption,
68 _In_ UINT uText,
69 ...);
70
71#endif /* __CPL_SYSDM_H */