44 L"SYSTEM\\CurrentControlSet\\Control\\Keyboard Layouts",
52 HKEY hkeyLayouts, hkeyKLID;
54 DWORD dwSpecialId, dwLayoutId, cbValue, dwKLID = 0;
57 ok(hkeyLayouts !=
NULL,
"hkeyLayouts was NULL\n");
62 for (
DWORD dwIndex = 0; dwIndex < 1000; ++dwIndex)
73 cbValue =
sizeof(szLayoutId);
84 if (dwLayoutId == dwSpecialId)
120 DWORD dwValue, cbValue;
121 HKEY hkeyKLID, hkeyLayouts;
125 ok(hkeyLayouts !=
NULL,
"hkeyLayouts was NULL\n");
129 ok(hkeyKLID !=
NULL,
"hkeyKLID was NULL\n");
145 cbValue =
sizeof(szValue);
161 ok(hKL !=
NULL,
"hKL was NULL\n");
164 trace(
"dwKLID 0x%08lX, hKL %p\n", dwKLID, hKL);
175 trace(
"cKLs: %d\n", cKLs);
178 skip(
"cKLs was zero\n");
191 for (iKL = 0; iKL < cKLs; ++iKL)
194 trace(
"phKLs[%d]: %p\n", iKL, phKLs[iKL]);
static void Test_HKL(HKL hKL)
static void Test_KLID(DWORD dwKLID, HKL hKL)
static DWORD KLIDFromSpecialHKL(HKL hKL)
static DWORD KLIDFromHKL(HKL hKL)
enum tagHKL_TYPE HKL_TYPE
static HKEY OpenKeyboardLayouts(void)
static HKL_TYPE GetHKLType(HKL hKL)
#define ok_long(expression, result)
#define ok_int(expression, result)
#define RegCloseKey(hKey)
static LSTATUS(WINAPI *pRegDeleteTreeW)(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)
LONG WINAPI RegEnumKeyW(HKEY hKey, DWORD dwIndex, LPWSTR lpName, DWORD cbName)
GLuint GLuint GLsizei GLenum type
#define SPECIALIDFROMHKL(hKL)
#define IS_SPECIAL_HKL(hKL)
_Check_return_ unsigned long __cdecl wcstoul(_In_z_ const wchar_t *_Str, _Out_opt_ _Deref_post_z_ wchar_t **_EndPtr, _In_ int _Radix)
static const WCHAR szName[]
STRSAFEAPI StringCchPrintfW(STRSAFE_LPWSTR pszDest, size_t cchDest, STRSAFE_LPCWSTR pszFormat,...)
#define HKEY_LOCAL_MACHINE
UINT WINAPI GetKeyboardLayoutList(_In_ int nBuff, _Out_writes_to_opt_(nBuff, return) HKL FAR *lpList)