Go to the source code of this file.
◆ KeySettingsDialogProc()
Definition at line 224 of file key_settings_dialog.c.
INT_PTR WINAPI DialogBoxParamW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM)
static VOID UpdateKeySettingsListView(HWND hwndList)
#define UNREFERENCED_PARAMETER(P)
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)
UINT WINAPI IsDlgButtonChecked(_In_ HWND, _In_ int)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
static VOID OnInitKeySettingsDialog(HWND hwndDlg)
#define MAKEINTRESOURCEW(i)
static KEY_SETTINGS _KeySettings
static VOID WriteKeysSettings(VOID)
Referenced by OnCommandSettingsPage().
◆ OnInitKeySettingsDialog()
static VOID OnInitKeySettingsDialog |
( |
HWND |
hwndDlg | ) |
|
|
static |
Definition at line 181 of file key_settings_dialog.c.
BOOL WINAPI CheckDlgButton(_In_ HWND, _In_ int, _In_ UINT)
static VOID UpdateKeySettingsListView(HWND hwndList)
#define LVS_EX_FULLROWSELECT
#define ListView_InsertColumn(hwnd, iCol, pcol)
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
#define ListView_SetExtendedListViewStyle(hwndLV, dw)
static VOID ReadKeysSettings(VOID)
GLenum GLenum GLvoid GLvoid * column
static KEY_SETTINGS _KeySettings
Referenced by KeySettingsDialogProc().
◆ ReadAttributes()
Definition at line 14 of file key_settings_dialog.c.
#define HKEY_CURRENT_USER
LONG WINAPI RegQueryValueExW(_In_ HKEY hkeyorg, _In_ LPCWSTR name, _In_ LPDWORD reserved, _In_ LPDWORD type, _In_ LPBYTE data, _In_ LPDWORD count)
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
#define RegCloseKey(hKey)
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
Referenced by ReadKeysSettings().
◆ ReadKeysSettings()
Definition at line 40 of file key_settings_dialog.c.
47 L"Keyboard Layout\\Toggle",
#define HKEY_CURRENT_USER
_Check_return_ _CRTIMP int __cdecl _wtoi(_In_z_ const wchar_t *_Str)
DWORD ReadAttributes(VOID)
LONG WINAPI RegQueryValueExW(_In_ HKEY hkeyorg, _In_ LPCWSTR name, _In_ LPDWORD reserved, _In_ LPDWORD type, _In_ LPBYTE data, _In_ LPDWORD count)
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
#define RegCloseKey(hKey)
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
static KEY_SETTINGS _KeySettings
Referenced by OnInitKeySettingsDialog().
◆ UpdateKeySettingsListView()
static VOID UpdateKeySettingsListView |
( |
HWND |
hwndList | ) |
|
|
static |
Definition at line 146 of file key_settings_dialog.c.
158 item.pszText = szBuffer;
#define ListView_InsertItem(hwnd, pitem)
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
#define ListView_SetItemText(hwndLV, i, iSubItem_, pszText_)
static KEY_SETTINGS _KeySettings
#define ListView_DeleteAllItems(hwnd)
Referenced by KeySettingsDialogProc(), and OnInitKeySettingsDialog().
◆ WriteKeysSettings()
Definition at line 81 of file key_settings_dialog.c.
102 L"Keyboard Layout\\Toggle",
HKL WINAPI ActivateKeyboardLayout(_In_ HKL, _In_ UINT)
#define HKEY_CURRENT_USER
LONG WINAPI RegSetValueExW(_In_ HKEY hKey, _In_ LPCWSTR lpValueName, _In_ DWORD Reserved, _In_ DWORD dwType, _In_ CONST BYTE *lpData, _In_ DWORD cbData)
BOOL WINAPI SystemParametersInfoW(_In_ UINT uiAction, _In_ UINT uiParam, _Inout_opt_ PVOID pvParam, _In_ UINT fWinIni)
STRSAFEAPI StringCchPrintfW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszFormat,...)
PKEYBOARD_LAYOUT GetKeyboardLayout()
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
#define RegCloseKey(hKey)
static KEY_SETTINGS _KeySettings
Referenced by KeySettingsDialogProc().
◆ _KeySettings