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 #include <cpl.h> 14 15 #include "resource.h" 16 17 typedef struct _APPLET 18 { 19 INT idIcon; 20 INT idName; 21 INT idDescription; 22 APPLET_PROC AppletProc; 23 } APPLET, *PAPPLET; 24 25 26 typedef struct _GLOBAL_DATA 27 { 28 /* Keyboard page */ 29 STICKYKEYS stickyKeys; 30 STICKYKEYS oldStickyKeys; 31 FILTERKEYS filterKeys; 32 FILTERKEYS oldFilterKeys; 33 TOGGLEKEYS toggleKeys; 34 TOGGLEKEYS oldToggleKeys; 35 BOOL bKeyboardPref; 36 37 /* Sound page */ 38 SOUNDSENTRY ssSoundSentry; 39 BOOL bShowSounds; 40 41 /* Display page */ 42 HIGHCONTRAST highContrast; 43 UINT uCaretBlinkTime; 44 UINT uCaretWidth; 45 BOOL fShowCaret; 46 RECT rcCaret; 47 RECT rcOldCaret; 48 49 /* Mouse page */ 50 MOUSEKEYS mouseKeys; 51 52 /* General page */ 53 ACCESSTIMEOUT accessTimeout; 54 SERIALKEYS serialKeys; 55 TCHAR szActivePort[MAX_PATH]; 56 TCHAR szPort[MAX_PATH]; 57 BOOL bWarningSounds; 58 BOOL bSoundOnActivation; 59 60 } GLOBAL_DATA, *PGLOBAL_DATA; 61 62 63 extern HINSTANCE hApplet; 64 65 void ShowLastWin32Error(HWND hWndOwner); 66 67 INT_PTR CALLBACK DisplayPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam); 68 INT_PTR CALLBACK GeneralPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam); 69 INT_PTR CALLBACK KeyboardPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam); 70 INT_PTR CALLBACK MousePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam); 71 INT_PTR CALLBACK SoundPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam); 72 73 #endif /* _ACCESS_H */ 74