Go to the source code of this file.
◆ KeySettingsDialogProc()
Definition at line 224 of file key_settings_dialog.c.
225{
227
228 switch (uMsg)
229 {
233
235 {
237 {
239 {
242 hwndDlg,
245 {
247 }
248 }
249 break;
250
252 {
254 {
256 }
257 else
258 {
260 }
261
264 }
265 break;
266
268 {
270 }
271 break;
272 }
273 }
274 break;
275 }
276
278}
static VOID OnInitKeySettingsDialog(HWND hwndDlg)
static VOID WriteKeysSettings(VOID)
static KEY_SETTINGS _KeySettings
static VOID UpdateKeySettingsListView(HWND hwndList)
#define UNREFERENCED_PARAMETER(P)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
UINT WINAPI IsDlgButtonChecked(_In_ HWND, _In_ int)
#define MAKEINTRESOURCEW(i)
INT_PTR WINAPI DialogBoxParamW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM)
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)
Referenced by OnCommandSettingsPage().
◆ OnInitKeySettingsDialog()
static VOID OnInitKeySettingsDialog |
( |
HWND |
hwndDlg | ) |
|
|
static |
Definition at line 181 of file key_settings_dialog.c.
182{
185
187
189 {
192 }
193 else
194 {
197 }
198
200
202
204
206
212
218
220}
static VOID ReadKeysSettings(VOID)
#define ListView_InsertColumn(hwnd, iCol, pcol)
#define LVS_EX_FULLROWSELECT
#define ListView_SetExtendedListViewStyle(hwndLV, dw)
BOOL WINAPI CheckDlgButton(_In_ HWND, _In_ int, _In_ UINT)
Referenced by KeySettingsDialogProc().
◆ ReadAttributes()
Definition at line 14 of file key_settings_dialog.c.
15{
18
21 0,
24 {
26
32
34 }
35
37}
#define RegCloseKey(hKey)
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
LONG WINAPI RegQueryValueExW(_In_ HKEY hkeyorg, _In_ LPCWSTR name, _In_ LPDWORD reserved, _In_ LPDWORD type, _In_ LPBYTE data, _In_ LPDWORD count)
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
#define HKEY_CURRENT_USER
Referenced by ReadKeysSettings().
◆ ReadKeysSettings()
Definition at line 40 of file key_settings_dialog.c.
41{
43
45
47 L"Keyboard Layout\\Toggle",
48 0,
51 {
54
56
61 {
63 }
64
66
71 {
73 }
74
76 }
77}
_Check_return_ _CRTIMP int __cdecl _wtoi(_In_z_ const wchar_t *_Str)
DWORD ReadAttributes(VOID)
Referenced by OnInitKeySettingsDialog().
◆ UpdateKeySettingsListView()
static VOID UpdateKeySettingsListView |
( |
HWND |
hwndList | ) |
|
|
static |
Definition at line 146 of file key_settings_dialog.c.
147{
151
153
155
158 item.pszText = szBuffer;
160
162
164 {
166 }
168 {
170 }
171 else
172 {
174 }
175
177}
#define ListView_InsertItem(hwnd, pitem)
#define ListView_DeleteAllItems(hwnd)
#define ListView_SetItemText(hwndLV, i, iSubItem_, pszText_)
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
Referenced by KeySettingsDialogProc(), and OnInitKeySettingsDialog().
◆ WriteKeysSettings()
Definition at line 81 of file key_settings_dialog.c.
82{
84
87 0,
90 {
93 0,
97
99 }
100
102 L"Keyboard Layout\\Toggle",
103 0,
106 {
108
110
113 0,
117
120 0,
124
126
129 0,
133
135 }
136
137
139
140
142}
LONG WINAPI RegSetValueExW(_In_ HKEY hKey, _In_ LPCWSTR lpValueName, _In_ DWORD Reserved, _In_ DWORD dwType, _In_ CONST BYTE *lpData, _In_ DWORD cbData)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
STRSAFEAPI StringCchPrintfW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszFormat,...)
HKL WINAPI GetKeyboardLayout(_In_ DWORD)
BOOL WINAPI SystemParametersInfoW(_In_ UINT uiAction, _In_ UINT uiParam, _Inout_opt_ PVOID pvParam, _In_ UINT fWinIni)
HKL WINAPI ActivateKeyboardLayout(_In_ HKL, _In_ UINT)
Referenced by KeySettingsDialogProc().
◆ _KeySettings