ReactOS 0.4.15-dev-7907-g95bf896
input.h
Go to the documentation of this file.
1#ifndef _INPUT_H
2#define _INPUT_H
3
4#include <stdlib.h>
5#include <wchar.h>
6
7#define WIN32_NO_STATUS
8#include <windef.h>
9#include <winbase.h>
10#include <winnls.h>
11#include <winreg.h>
12#include <winuser.h>
13#include <wingdi.h>
14#include <commctrl.h>
15#include <windowsx.h>
16#include <setupapi.h>
17#include <strsafe.h>
18#include <cpl.h>
19#include <imm32_undoc.h>
20
21#include "resource.h"
22
23typedef struct
24{
25 int idIcon;
26 int idName;
27 int idDescription;
28 APPLET_PROC AppletProc;
30
31extern HINSTANCE hApplet;
33
34// Character Count of a layout ID like "00000409"
35#define CCH_LAYOUT_ID 8
36
37// Maximum Character Count of a ULONG in decimal
38#define CCH_ULONG_DEC 10
39
40#define MAX_STR_LEN 256
41
42/* settings_page.c */
46
47/* advanced_settings_page.c */
50
51/* add_dialog.c */
54
55/* edit_dialog.c */
58
59/* key_settings_dialog.c */
60
61typedef struct
62{
67
70
73
74/* key_sequence_dialog.c */
77
78
79static inline DWORD
81{
82 WCHAR *pszEnd;
83
84 return wcstoul(pszString, &pszEnd, 16);
85}
86
88
89#endif /* _INPUT_H */
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
LONG(APIENTRY * APPLET_PROC)(HWND, UINT, LPARAM, LPARAM)
Definition: cpl.h:23
INT_PTR CALLBACK EditDialogProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: edit_dialog.c:14
static DWORD DWORDfromString(const WCHAR *pszString)
Definition: input.h:80
INT_PTR CALLBACK KeySettingsDialogProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
VOID GetSystemLibraryPath(LPWSTR pszPath, INT cchPath, LPCWSTR pszFileName)
Definition: input_list.c:42
BOOL EnableProcessPrivileges(LPCWSTR lpPrivilegeName, BOOL bEnable)
INT_PTR CALLBACK SettingsPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
BOOL g_bRebootNeeded
Definition: input.c:18
struct APPLET * PAPPLET
DWORD ReadAttributes(VOID)
INT_PTR CALLBACK AdvancedSettingsPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
INT_PTR CALLBACK AddDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
Definition: add_dialog.c:177
INT_PTR CALLBACK ChangeKeySeqDialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
HINSTANCE hApplet
Definition: access.c:17
#define CALLBACK
Definition: compat.h:35
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
_Check_return_ unsigned long __cdecl wcstoul(_In_z_ const wchar_t *_Str, _Out_opt_ _Deref_post_z_ wchar_t **_EndPtr, _In_ int _Radix)
unsigned int UINT
Definition: ndis.h:50
Definition: hotplug.h:34
DWORD dwAttributes
Definition: input.h:63
DWORD dwLanguage
Definition: input.h:64
DWORD dwLayout
Definition: input.h:65
Definition: tftpd.h:60
int32_t INT_PTR
Definition: typedefs.h:64
int32_t INT
Definition: typedefs.h:58
WORD WORD PSZ PSZ pszFileName
Definition: vdmdbg.h:44
_In_ DWORD _In_ DWORD _Out_writes_to_opt_ pcchString LPSTR pszString
Definition: wincrypt.h:4505
_In_ BOOL bEnable
Definition: winddi.h:3426
LONG_PTR LPARAM
Definition: windef.h:208
UINT_PTR WPARAM
Definition: windef.h:207
__wchar_t WCHAR
Definition: xmlstorage.h:180
WCHAR * LPWSTR
Definition: xmlstorage.h:184
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185