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;
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);
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);
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);
231 Globals.bShowWarning = (dwValue != 0);
236 Globals.bIsEnhancedKeyboard = (dwValue != 0);
241 Globals.bSoundClick = (dwValue != 0);
256 Globals.bAlwaysOnTop = (dwValue != 0);
LONG SaveDWORDToRegistry(IN LPCWSTR lpValueDataName, IN DWORD dwValueData)
LONG LoadStringFromRegistry(IN LPCWSTR lpValueDataName, OUT LPWSTR lpValueData, IN OUT LPUINT cchCount)
LONG SaveStringToRegistry(IN LPCWSTR lpValueDataName, IN LPCWSTR lpValueData, IN UINT cchCount)
LONG LoadDWORDFromRegistry(IN LPCWSTR lpValueDataName, OUT PDWORD pdwValueData)
#define RegCloseKey(hKey)
CLIPBOARD_GLOBALS Globals
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 RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
LONG WINAPI RegSetValueExW(_In_ HKEY hKey, _In_ LPCWSTR lpValueName, _In_ DWORD Reserved, _In_ DWORD dwType, _In_ CONST BYTE *lpData, _In_ DWORD cbData)
LONG WINAPI RegQueryValueExW(_In_ HKEY hkeyorg, _In_ LPCWSTR name, _In_ LPDWORD reserved, _In_ LPDWORD type, _In_ LPBYTE data, _In_ LPDWORD count)
STRSAFEAPI StringCchCopyW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszSrc)
#define HKEY_CURRENT_USER
BOOL WINAPI GetWindowPlacement(_In_ HWND, _Inout_ WINDOWPLACEMENT *)
struct _WINDOWPLACEMENT WINDOWPLACEMENT