ReactOS 0.4.15-dev-8227-g32d615f
kbdtool.h
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS Build Tools [Keyboard Layout Compiler]
3 * LICENSE: BSD - See COPYING.BSD in the top level directory
4 * FILE: tools/kbdtool/kbdtool.h
5 * PURPOSE: Main Header File
6 * PROGRAMMERS: ReactOS Foundation
7 */
8
9/* INCLUDES *******************************************************************/
10
11#include <ctype.h>
12#include <string.h>
13#include <stdarg.h>
14#include <stdio.h>
15#include <stdlib.h>
16#include <time.h>
17#include <typedefs.h>
18
19#define KEYWORD_COUNT 17
20
21#define CHAR_NORMAL_KEY 0
22#define CHAR_DEAD_KEY 1
23#define CHAR_OTHER_KEY 2
24#define CHAR_INVALID_KEY 3
25#define CHAR_LIGATURE_KEY 4
26
27typedef struct tagKEYNAME
28{
33
34typedef struct tagSCVK
35{
41
42typedef struct tagVKNAME
43{
47
48typedef struct tagLAYOUTENTRY
49{
64
65typedef struct tagLAYOUT
66{
69
72 IN ULONG StateCount,
73 IN PULONG ShiftStates,
74 IN PKEYNAME DescriptionData,
75 IN PKEYNAME LanguageData,
77 IN PVOID DeadKeyData,
78 IN PVOID LigatureData,
79 IN PKEYNAME KeyNameData,
80 IN PKEYNAME KeyNameExtData,
81 IN PKEYNAME KeyNameDeadData
82);
83
86 IN ULONG VirtualKey,
88);
89
92 VOID
93);
94
96extern PCHAR gpszFileName;
97extern FILE* gfpInput;
98extern VKNAME VKName[];
99extern VKNAME Modifiers[];
100extern SCVK ScVk[];
101extern PCHAR StateLabel[];
102extern PCHAR CapState[];
103extern LAYOUT g_Layout;
104extern CHAR gVKeyName[32];
105extern CHAR gKBDName[10];
106extern CHAR gCopyright[256];
107extern CHAR gDescription[256];
108extern CHAR gCompany[256];
109extern CHAR gLocaleName[256];
111
112/* EOF */
unsigned char BOOLEAN
@ AttributeData
Definition: ntfs.h:168
CHAR gDescription[256]
Definition: parser.c:19
FILE * gfpInput
Definition: main.c:21
struct tagLAYOUTENTRY * PLAYOUTENTRY
struct tagLAYOUTENTRY LAYOUTENTRY
struct tagKEYNAME KEYNAME
PCHAR getVKName(IN ULONG VirtualKey, IN BOOLEAN Prefix)
Definition: parser.c:65
ULONG gVersion
Definition: init.c:22
struct tagSCVK * PSCVK
VKNAME Modifiers[]
Definition: data.c:56
BOOLEAN SanityCheck
Definition: kbdtool.h:95
struct tagKEYNAME * PKEYNAME
struct tagLAYOUT LAYOUT
LAYOUT g_Layout
Definition: parser.c:25
ULONG DoOutput(IN ULONG StateCount, IN PULONG ShiftStates, IN PKEYNAME DescriptionData, IN PKEYNAME LanguageData, IN PVOID AttributeData, IN PVOID DeadKeyData, IN PVOID LigatureData, IN PKEYNAME KeyNameData, IN PKEYNAME KeyNameExtData, IN PKEYNAME KeyNameDeadData)
Definition: output.c:1268
BOOLEAN Verbose
Definition: chkdsk.c:72
SCVK ScVk[]
Definition: data.c:146
PCHAR StateLabel[]
Definition: data.c:64
CHAR gKBDName[10]
Definition: parser.c:17
struct tagVKNAME * PVKNAME
VKNAME VKName[]
Definition: data.c:16
CHAR gLocaleName[256]
Definition: parser.c:21
BOOLEAN FallbackDriver
Definition: kbdtool.h:95
CHAR gCopyright[256]
Definition: version.c:17
CHAR gVKeyName[32]
Definition: parser.c:22
struct tagLAYOUT * PLAYOUT
struct tagVKNAME VKNAME
struct tagSCVK SCVK
PCHAR CapState[]
Definition: data.c:135
ULONG DoParsing(VOID)
Definition: parser.c:972
ULONG gSubVersion
Definition: kbdtool.h:110
PCHAR gpszFileName
Definition: main.c:20
CHAR gCompany[256]
Definition: parser.c:20
BOOLEAN UnicodeFile
Definition: kbdtool.h:95
unsigned short USHORT
Definition: pedump.c:61
base of all file and directory entries
Definition: entries.h:83
PCHAR Name
Definition: kbdtool.h:30
ULONG Code
Definition: kbdtool.h:29
struct tagKEYNAME * Next
Definition: kbdtool.h:31
ULONG CharData[8]
Definition: kbdtool.h:55
struct LAYOUTENTRY * CapData
Definition: kbdtool.h:59
ULONG Cap
Definition: kbdtool.h:53
ULONG Processed
Definition: kbdtool.h:61
ULONG DeadCharData[8]
Definition: kbdtool.h:56
PCHAR Name
Definition: kbdtool.h:60
UCHAR VirtualKey
Definition: kbdtool.h:51
ULONG OtherCharData[8]
Definition: kbdtool.h:58
ULONG LineCount
Definition: kbdtool.h:62
USHORT ScanCode
Definition: kbdtool.h:50
UCHAR OriginalVirtualKey
Definition: kbdtool.h:52
UCHAR LigatureCharData[8]
Definition: kbdtool.h:57
ULONG StateCount
Definition: kbdtool.h:54
USHORT ScanCode
Definition: kbdtool.h:36
UCHAR VirtualKey
Definition: kbdtool.h:37
BOOLEAN Processed
Definition: kbdtool.h:39
PCHAR Name
Definition: kbdtool.h:38
PCHAR Name
Definition: kbdtool.h:45
ULONG VirtualKey
Definition: kbdtool.h:44
uint32_t * PULONG
Definition: typedefs.h:59
#define IN
Definition: typedefs.h:39
uint32_t ULONG
Definition: typedefs.h:59
char * PCHAR
Definition: typedefs.h:51
_In_ __drv_aliasesMem PSTRING Prefix
Definition: rtlfuncs.h:1630
unsigned char UCHAR
Definition: xmlstorage.h:181
char CHAR
Definition: xmlstorage.h:175