ReactOS 0.4.15-dev-8235-gcd88a97
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
25typedef struct _KEY
26{
36
37typedef struct _KEYBOARD_STRUCT
38{
49
50typedef struct
51{
60
61 /* On-Screen Keyboard registry settings */
68 WCHAR FontFaceName[LF_FACESIZE];
71
72typedef struct
73{
79
80/* PROTOTYPES *****************************************************************/
81
82/* keyboard.c */
85
86/* main.c */
87int OSK_SetImage(int IdDlgItem, int IdResource);
89int OSK_Close(void);
90int OSK_Timer(void);
91BOOL OSK_Command(WPARAM wCommand, HWND hWndControl);
99
100/* settings.c */
101LONG LoadDWORDFromRegistry(IN LPCWSTR lpValueDataName,
102 OUT PDWORD pdwValueData);
103
104LONG LoadStringFromRegistry(IN LPCWSTR lpValueDataName,
105 OUT LPWSTR lpValueData,
106 IN OUT LPUINT cchCount);
107
108LONG SaveDWORDToRegistry(IN LPCWSTR lpValueDataName,
109 IN DWORD dwValueData);
110
111LONG SaveStringToRegistry(IN LPCWSTR lpValueDataName,
112 IN LPCWSTR lpValueData,
113 IN UINT cchCount);
114
117
118/* DEFINES ********************************************************************/
119
120#define SCANCODE_MASK 0xFF
121
122extern OSK_GLOBALS Globals;
123
124#define OSK_CLASS L"OSKMainWindow"
125#define DEFAULT_FONTSIZE 15
126
127/* OSK_SetKeys reasons */
129{
134
135#endif /* _OSK_PRECOMP_H */
136
137/* EOF */
UINT ScanCode
Definition: VirtualKey.c:24
#define msg(x)
Definition: auth_time.c:54
void SaveSettings(void)
Definition: settings.c:115
void LoadSettings(void)
Definition: settings.c:53
CLIPBOARD_GLOBALS Globals
Definition: clipbrd.c:13
DWORD WINAPI OSK_WarningDlgThread(LPVOID lpParameter)
Definition: main.c:124
KEYBOARD_STRUCT EnhancedKeyboard
Definition: keyboard.c:227
LONG SaveDWORDToRegistry(IN LPCWSTR lpValueDataName, IN DWORD dwValueData)
Definition: settings.c:121
KEYBOARD_STRUCT StandardKeyboard
Definition: keyboard.c:240
struct _KEY * PKEY
LRESULT OSK_Create(HWND hwnd)
Definition: main.c:367
struct _KEYBOARD_STRUCT * PKEYBOARD_STRUCT
BOOL OSK_Command(WPARAM wCommand, HWND hWndControl)
Definition: main.c:614
BOOL OSK_ReleaseKey(WORD ScanCode)
Definition: main.c:710
VOID OSK_RefreshLEDKeys(VOID)
Definition: main.c:517
struct _KEY KEY
int OSK_SetImage(int IdDlgItem, int IdResource)
Definition: main.c:33
LONG LoadStringFromRegistry(IN LPCWSTR lpValueDataName, OUT LPWSTR lpValueData, IN OUT LPUINT cchCount)
Definition: settings.c:73
INT_PTR CALLBACK OSK_WarningProc(HWND hDlg, UINT Msg, WPARAM wParam, LPARAM lParam)
Definition: main.c:83
int OSK_Timer(void)
Definition: main.c:539
SetKeys_Reason
Definition: precomp.h:129
@ SETKEYS_LANG
Definition: precomp.h:132
@ SETKEYS_LAYOUT
Definition: precomp.h:131
@ SETKEYS_INIT
Definition: precomp.h:130
VOID OSK_RestoreDlgPlacement(HWND hDlg)
struct _KEYBOARD_STRUCT KEYBOARD_STRUCT
int WINAPI wWinMain(HINSTANCE, HINSTANCE, LPWSTR, int)
Definition: charmap.c:671
int OSK_Close(void)
Definition: main.c:485
LONG SaveStringToRegistry(IN LPCWSTR lpValueDataName, IN LPCWSTR lpValueData, IN UINT cchCount)
Definition: settings.c:165
LONG LoadDWORDFromRegistry(IN LPCWSTR lpValueDataName, OUT PDWORD pdwValueData)
Definition: settings.c:15
LRESULT APIENTRY OSK_WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
Definition: main.c:792
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
struct @1643 Msg[]
#define LF_FACESIZE
Definition: dimm.idl:39
#define APIENTRY
Definition: api.h:79
#define MAX_PATH
Definition: compat.h:34
#define CALLBACK
Definition: compat.h:35
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
unsigned short WORD
Definition: ntddk_ex.h:93
TCHAR szTitle[MAX_LOADSTRING]
Definition: magnifier.c:35
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
unsigned __int3264 UINT_PTR
Definition: mstsclib_h.h:274
unsigned int UINT
Definition: ndis.h:50
DWORD * PDWORD
Definition: pedump.c:68
long LONG
Definition: pedump.c:60
BOOL bAlwaysOnTop
Definition: precomp.h:65
HINSTANCE hInstance
Definition: precomp.h:52
BOOL bSoundClick
Definition: precomp.h:64
LONG FontHeight
Definition: precomp.h:69
PKEYBOARD_STRUCT Keyboard
Definition: precomp.h:56
HWND * hKeys
Definition: precomp.h:57
INT PosX
Definition: precomp.h:66
HWND hMainWnd
Definition: precomp.h:53
UINT_PTR iTimer
Definition: precomp.h:55
HBRUSH hBrushGreenLed
Definition: precomp.h:54
INT PosY
Definition: precomp.h:67
BOOL bShowWarning
Definition: precomp.h:62
HFONT hFont
Definition: precomp.h:58
BOOL bIsEnhancedKeyboard
Definition: precomp.h:63
INT LedTextOffset
Definition: precomp.h:44
SIZE LedTextSize
Definition: precomp.h:43
POINT LedTextStart
Definition: precomp.h:42
POINT LedStart
Definition: precomp.h:45
Definition: precomp.h:26
INT cx
Definition: precomp.h:31
INT_PTR scancode
Definition: precomp.h:28
INT flags
Definition: precomp.h:33
INT y
Definition: precomp.h:30
LPCWSTR name
Definition: precomp.h:27
INT cy
Definition: precomp.h:32
BOOL translate
Definition: precomp.h:34
INT x
Definition: precomp.h:29
int32_t INT_PTR
Definition: typedefs.h:64
int32_t INT
Definition: typedefs.h:58
#define IN
Definition: typedefs.h:39
uint32_t * LPUINT
Definition: typedefs.h:59
#define OUT
Definition: typedefs.h:40
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
LONG_PTR LPARAM
Definition: windef.h:208
LONG_PTR LRESULT
Definition: windef.h:209
UINT_PTR WPARAM
Definition: windef.h:207
#define WINAPI
Definition: msvc.h:6
__wchar_t WCHAR
Definition: xmlstorage.h:180
WCHAR * LPWSTR
Definition: xmlstorage.h:184
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185