ReactOS  0.4.14-dev-552-g2fad488
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 
19 #include "resource.h"
20 
22 
23 typedef struct
24 {
25  int idIcon;
26  int idName;
27  int idDescription;
29 } APPLET, *PAPPLET;
30 
31 extern HINSTANCE hApplet;
32 
33 // Character Count of a layout ID like "00000409"
34 #define CCH_LAYOUT_ID 8
35 
36 // Maximum Character Count of a ULONG in decimal
37 #define CCH_ULONG_DEC 10
38 
39 #define MAX_STR_LEN 256
40 
41 /* settings_page.c */
44 
45 /* advanced_settings_page.c */
48 
49 /* add_dialog.c */
52 
53 /* edit_dialog.c */
56 
57 /* key_settings_dialog.c */
58 
59 typedef struct
60 {
64 } KEY_SETTINGS;
65 
68 
69 DWORD
71 
72 /* key_sequence_dialog.c */
75 
76 
77 static inline DWORD
79 {
80  WCHAR *pszEnd;
81 
82  return wcstoul(pszString, &pszEnd, 16);
83 }
84 
85 #endif /* _INPUT_H */
LONG(CALLBACK * CPLAPPLET_PROC)(VOID)
Definition: input.h:21
struct APPLET * PAPPLET
Definition: tftpd.h:59
INT_PTR CALLBACK EditDialogProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: edit_dialog.c:14
HINSTANCE hApplet
Definition: access.c:17
INT_PTR CALLBACK KeySettingsDialogProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
DWORD dwLayout
Definition: input.h:63
#define CALLBACK
Definition: compat.h:27
DWORD dwLanguage
Definition: input.h:62
UINT_PTR WPARAM
Definition: windef.h:207
_Check_return_ unsigned long __cdecl wcstoul(_In_z_ const wchar_t *_Str, _Out_opt_ _Deref_post_z_ wchar_t **_EndPtr, _In_ int _Radix)
int32_t INT_PTR
Definition: typedefs.h:62
WPARAM wParam
Definition: combotst.c:138
long LONG
Definition: pedump.c:60
LONG_PTR LPARAM
Definition: windef.h:208
INT_PTR CALLBACK AddDialogProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
Definition: add_dialog.c:177
INT_PTR CALLBACK AdvancedSettingsPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
INT_PTR CALLBACK ChangeKeySeqDialogProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
__wchar_t WCHAR
Definition: xmlstorage.h:180
unsigned long DWORD
Definition: ntddk_ex.h:95
DWORD ReadAttributes(VOID)
#define VOID
Definition: acefi.h:82
INT_PTR CALLBACK SettingsPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
unsigned int UINT
Definition: ndis.h:50
struct _APPLET APPLET
static DWORD DWORDfromString(const WCHAR *pszString)
Definition: input.h:78
DWORD dwAttributes
Definition: input.h:61
LPARAM lParam
Definition: combotst.c:139
_In_ DWORD _In_ DWORD _Out_writes_to_opt_ pcchString LPSTR pszString
Definition: wincrypt.h:4509
CPLAPPLET_PROC AppletProc
Definition: input.h:28