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