Sync with trunk r63430.
[reactos.git] / dll / cpl / access / access.h
1 #ifndef _ACCESS_H
2 #define _ACCESS_H
3
4 #include <stdarg.h>
5
6 #define WIN32_NO_STATUS
7 #include <windef.h>
8 #include <winbase.h>
9 #include <winreg.h>
10 #include <winuser.h>
11 #include <commctrl.h>
12 #include <tchar.h>
13
14 #include "resource.h"
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
27 typedef struct _GLOBAL_DATA
28 {
29 /* Keyboard page */
30 STICKYKEYS stickyKeys;
31 STICKYKEYS oldStickyKeys;
32 FILTERKEYS filterKeys;
33 FILTERKEYS oldFilterKeys;
34 TOGGLEKEYS toggleKeys;
35 TOGGLEKEYS oldToggleKeys;
36 BOOL bKeyboardPref;
37
38 /* Sound page */
39 SOUNDSENTRY ssSoundSentry;
40 BOOL bShowSounds;
41
42 /* Display page */
43 HIGHCONTRAST highContrast;
44 UINT uCaretBlinkTime;
45 UINT uCaretWidth;
46 BOOL fShowCaret;
47 RECT rcCaret;
48 RECT rcOldCaret;
49
50 /* Mouse page */
51 MOUSEKEYS mouseKeys;
52
53 /* General page */
54 ACCESSTIMEOUT accessTimeout;
55 SERIALKEYS serialKeys;
56 TCHAR szActivePort[MAX_PATH];
57 TCHAR szPort[MAX_PATH];
58 BOOL bWarningSounds;
59 BOOL bSoundOnActivation;
60
61 } GLOBAL_DATA, *PGLOBAL_DATA;
62
63
64 extern HINSTANCE hApplet;
65
66 void ShowLastWin32Error(HWND hWndOwner);
67
68 INT_PTR CALLBACK DisplayPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
69 INT_PTR CALLBACK GeneralPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
70 INT_PTR CALLBACK KeyboardPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
71 INT_PTR CALLBACK MousePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
72 INT_PTR CALLBACK SoundPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
73
74 #endif /* _ACCESS_H */