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