Go to the source code of this file.
◆ LoadDWORDFromRegistry()
Definition at line 15 of file settings.c.
21 DWORD cbData =
sizeof(dwValue);
28 L"Software\\Microsoft\\Osk",
36 DPRINT(
"LoadDWORDFromRegistry(): Failed to open the application's key! (Error - %li)\n", lResult);
52 DPRINT(
"LoadDWORDFromRegistry(): Failed to load the following value - \"%S\". (Error - %li)\n", lpValueDataName, lResult);
58 if (cbData !=
sizeof(dwValue))
61 DPRINT(
"LoadDWORDFromRegistry(): The buffer is too small to hold the data!\n");
66 *pdwValueData = dwValue;
#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)
Referenced by LoadSettings().
◆ LoadSettings()
Definition at line 210 of file settings.c.
231 Globals.bShowWarning = (dwValue != 0);
236 Globals.bIsEnhancedKeyboard = (dwValue != 0);
241 Globals.bSoundClick = (dwValue != 0);
256 Globals.bAlwaysOnTop = (dwValue != 0);
LONG LoadDWORDFromRegistry(IN LPCWSTR lpValueDataName, OUT PDWORD pdwValueData)
CLIPBOARD_GLOBALS Globals
STRSAFEAPI StringCchCopyW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszSrc)
LONG LoadStringFromRegistry(IN LPCWSTR lpValueDataName, OUT LPWSTR lpValueData, IN OUT LPUINT cchCount)
◆ LoadStringFromRegistry()
Definition at line 73 of file settings.c.
85 L"Software\\Microsoft\\Osk",
93 DPRINT(
"LoadStringFromRegistry(): Failed to open the application's key! (Error - %li)\n", lResult);
110 DPRINT(
"LoadStringFromRegistry(): Failed to load the following value - \"%S\". (Error - %li)\n", lpValueDataName, lResult);
#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)
Referenced by LoadSettings().
◆ SaveDWORDToRegistry()
Definition at line 121 of file settings.c.
129 L"Software\\Microsoft\\Osk",
141 DPRINT(
"SaveDWORDToRegistry(): Failed to create the application's key! (Error - %li)\n", lResult);
150 (
BYTE *)&dwValueData,
151 sizeof(dwValueData));
156 DPRINT(
"SaveDWORDToRegistry(): Failed to save the following value - \"%S\". (Error - %li)\n", lpValueDataName, lResult);
#define HKEY_CURRENT_USER
LONG WINAPI RegCreateKeyExW(_In_ HKEY hKey, _In_ LPCWSTR lpSubKey, _In_ DWORD Reserved, _In_opt_ LPWSTR lpClass, _In_ DWORD dwOptions, _In_ REGSAM samDesired, _In_opt_ LPSECURITY_ATTRIBUTES lpSecurityAttributes, _Out_ PHKEY phkResult, _Out_opt_ LPDWORD lpdwDisposition)
LONG WINAPI RegSetValueExW(_In_ HKEY hKey, _In_ LPCWSTR lpValueName, _In_ DWORD Reserved, _In_ DWORD dwType, _In_ CONST BYTE *lpData, _In_ DWORD cbData)
#define RegCloseKey(hKey)
Referenced by SaveSettings().
◆ SaveSettings()
Definition at line 270 of file settings.c.
struct _WINDOWPLACEMENT WINDOWPLACEMENT
LONG SaveStringToRegistry(IN LPCWSTR lpValueDataName, IN LPCWSTR lpValueData, IN UINT cchCount)
LONG SaveDWORDToRegistry(IN LPCWSTR lpValueDataName, IN DWORD dwValueData)
CLIPBOARD_GLOBALS Globals
BOOL WINAPI GetWindowPlacement(_In_ HWND, _Inout_ WINDOWPLACEMENT *)
◆ SaveStringToRegistry()
Definition at line 165 of file settings.c.
174 L"Software\\Microsoft\\Osk",
186 DPRINT(
"SaveStringToRegistry(): Failed to create the application's key! (Error - %li)\n", lResult);
196 cchCount *
sizeof(
WCHAR));
201 DPRINT(
"SaveStringToRegistry(): Failed to save the following value - \"%S\". (Error - %li)\n", lpValueDataName, lResult);
#define HKEY_CURRENT_USER
LONG WINAPI RegCreateKeyExW(_In_ HKEY hKey, _In_ LPCWSTR lpSubKey, _In_ DWORD Reserved, _In_opt_ LPWSTR lpClass, _In_ DWORD dwOptions, _In_ REGSAM samDesired, _In_opt_ LPSECURITY_ATTRIBUTES lpSecurityAttributes, _Out_ PHKEY phkResult, _Out_opt_ LPDWORD lpdwDisposition)
LONG WINAPI RegSetValueExW(_In_ HKEY hKey, _In_ LPCWSTR lpValueName, _In_ DWORD Reserved, _In_ DWORD dwType, _In_ CONST BYTE *lpData, _In_ DWORD cbData)
#define RegCloseKey(hKey)
Referenced by SaveSettings().