ReactOS  0.4.15-dev-4872-g8a3db97
precomp.h
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS On-Screen Keyboard
3  * LICENSE: GPL - See COPYING in the top level directory
4  * PURPOSE: Pre-compiled header
5  * COPYRIGHT: Denis ROBERT
6  * Copyright 2019 George BiČ™oc (george.bisoc@reactos.org)
7  */
8 
9 #ifndef _OSK_PRECOMP_H
10 #define _OSK_PRECOMP_H
11 
12 /* INCLUDES *******************************************************************/
13 
14 #include <stdio.h>
15 
16 #include <windows.h>
17 #include <debug.h>
18 #include "commctrl.h"
19 #include "strsafe.h"
20 
21 #include "osk_res.h"
22 
23 /* TYPES **********************************************************************/
24 
25 typedef struct _KEY
26 {
29  INT x;
30  INT y;
35 } KEY, *PKEY;
36 
37 typedef struct _KEYBOARD_STRUCT
38 {
49 
50 typedef struct
51 {
60  /* FIXME: To be deleted when ReactOS will support WS_EX_NOACTIVATE */
62 
63  /* On-Screen Keyboard registry settings */
70  WCHAR FontFaceName[LF_FACESIZE];
72 } OSK_GLOBALS;
73 
74 typedef struct
75 {
81 
82 /* PROTOTYPES *****************************************************************/
83 
84 /* keyboard.c */
87 
88 /* main.c */
89 int OSK_SetImage(int IdDlgItem, int IdResource);
91 int OSK_Close(void);
92 int OSK_Timer(void);
93 BOOL OSK_Command(WPARAM wCommand, HWND hWndControl);
101 
102 /* settings.c */
103 LONG LoadDWORDFromRegistry(IN LPCWSTR lpValueDataName,
104  OUT PDWORD pdwValueData);
105 
106 LONG LoadStringFromRegistry(IN LPCWSTR lpValueDataName,
107  OUT LPWSTR lpValueData,
108  IN OUT LPUINT cchCount);
109 
110 LONG SaveDWORDToRegistry(IN LPCWSTR lpValueDataName,
111  IN DWORD dwValueData);
112 
113 LONG SaveStringToRegistry(IN LPCWSTR lpValueDataName,
114  IN LPCWSTR lpValueData,
115  IN UINT cchCount);
116 
119 
120 /* DEFINES ********************************************************************/
121 
122 #define SCANCODE_MASK 0xFF
123 
124 extern OSK_GLOBALS Globals;
125 
126 #define OSK_CLASS L"OSKMainWindow"
127 #define DEFAULT_FONTSIZE 15
128 
129 /* OSK_SetKeys reasons */
131 {
135 };
136 
137 #endif /* _OSK_PRECOMP_H */
138 
139 /* EOF */
LRESULT OSK_Create(HWND hwnd)
Definition: main.c:372
#define IN
Definition: typedefs.h:39
Definition: precomp.h:25
KEYBOARD_STRUCT StandardKeyboard
Definition: keyboard.c:240
BOOL OSK_Command(WPARAM wCommand, HWND hWndControl)
Definition: main.c:622
BOOL bSoundClick
Definition: precomp.h:66
#define LF_FACESIZE
Definition: dimm.idl:39
ULONG ScanCode
Definition: api.c:39
POINT LedTextStart
Definition: precomp.h:42
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
LONG LoadDWORDFromRegistry(IN LPCWSTR lpValueDataName, OUT PDWORD pdwValueData)
Definition: settings.c:15
INT x
Definition: precomp.h:29
LONG SaveStringToRegistry(IN LPCWSTR lpValueDataName, IN LPCWSTR lpValueData, IN UINT cchCount)
Definition: settings.c:165
VOID OSK_RestoreDlgPlacement(HWND hDlg)
BOOL bAlwaysOnTop
Definition: precomp.h:67
#define CALLBACK
Definition: compat.h:35
DWORD WINAPI OSK_WarningDlgThread(LPVOID lpParameter)
Definition: main.c:124
uint32_t * LPUINT
Definition: typedefs.h:59
KEYBOARD_STRUCT EnhancedKeyboard
Definition: keyboard.c:227
UINT_PTR WPARAM
Definition: windef.h:207
INT cy
Definition: precomp.h:32
int32_t INT_PTR
Definition: typedefs.h:64
BOOL OSK_ReleaseKey(WORD ScanCode)
Definition: main.c:731
HFONT hFont
Definition: precomp.h:58
int32_t INT
Definition: typedefs.h:58
WPARAM wParam
Definition: combotst.c:138
HWND hActiveWnd
Definition: precomp.h:61
CLIPBOARD_GLOBALS Globals
Definition: clipbrd.c:13
LONG LoadStringFromRegistry(IN LPCWSTR lpValueDataName, OUT LPWSTR lpValueData, IN OUT LPUINT cchCount)
Definition: settings.c:73
void SaveSettings(void)
Definition: settings.c:115
SetKeys_Reason
Definition: precomp.h:130
struct _KEY * PKEY
void LoadSettings(void)
Definition: settings.c:53
unsigned int BOOL
Definition: ntddk_ex.h:94
long LONG
Definition: pedump.c:60
INT_PTR scancode
Definition: precomp.h:28
BOOL translate
Definition: precomp.h:34
LONG_PTR LPARAM
Definition: windef.h:208
BOOL bShowWarning
Definition: precomp.h:64
HWND * hKeys
Definition: precomp.h:57
LONG FontHeight
Definition: precomp.h:71
VOID OSK_RefreshLEDKeys(VOID)
Definition: main.c:522
__wchar_t WCHAR
Definition: xmlstorage.h:180
UINT_PTR iTimer
Definition: precomp.h:55
#define MAX_PATH
Definition: compat.h:34
#define WINAPI
Definition: msvc.h:6
unsigned short WORD
Definition: ntddk_ex.h:93
unsigned long DWORD
Definition: ntddk_ex.h:95
unsigned __int3264 UINT_PTR
Definition: mstsclib_h.h:274
TCHAR szTitle[MAX_LOADSTRING]
Definition: magnifier.c:35
INT cx
Definition: precomp.h:31
INT y
Definition: precomp.h:30
BOOL bIsEnhancedKeyboard
Definition: precomp.h:65
int OSK_Close(void)
Definition: main.c:490
INT_PTR CALLBACK OSK_WarningProc(HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam)
Definition: main.c:83
struct _KEYBOARD_STRUCT * PKEYBOARD_STRUCT
int OSK_SetImage(int IdDlgItem, int IdResource)
Definition: main.c:33
SIZE LedTextSize
Definition: precomp.h:43
unsigned int UINT
Definition: ndis.h:50
HWND hMainWnd
Definition: precomp.h:53
INT PosX
Definition: precomp.h:68
DWORD * PDWORD
Definition: pedump.c:68
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
#define msg(x)
Definition: auth_time.c:54
PKEYBOARD_STRUCT Keyboard
Definition: precomp.h:56
#define OUT
Definition: typedefs.h:40
int OSK_Timer(void)
Definition: main.c:544
POINT LedStart
Definition: precomp.h:45
struct @1589 Msg[]
struct _KEY KEY
HBRUSH hBrushGreenLed
Definition: precomp.h:54
int WINAPI wWinMain(HINSTANCE, HINSTANCE, LPWSTR, int)
Definition: charmap.c:670
WCHAR * LPWSTR
Definition: xmlstorage.h:184
LONG_PTR LRESULT
Definition: windef.h:209
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4022
LONG SaveDWORDToRegistry(IN LPCWSTR lpValueDataName, IN DWORD dwValueData)
Definition: settings.c:121
LPCWSTR name
Definition: precomp.h:27
INT LedTextOffset
Definition: precomp.h:44
INT flags
Definition: precomp.h:33
LRESULT APIENTRY OSK_WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
Definition: main.c:813
LPARAM lParam
Definition: combotst.c:139
#define APIENTRY
Definition: api.h:79
HINSTANCE hInstance
Definition: precomp.h:52
struct _KEYBOARD_STRUCT KEYBOARD_STRUCT
INT PosY
Definition: precomp.h:69