10#define TestKeyAccess(da, er, es) TestKeyAccess_(__FILE__, __LINE__, da, er, es)
29 ret =
RegQueryInfoKeyW(
hKey,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL, &cbSd,
NULL);
32 ok_(
File,
Line)(cbSd != 0 && cbSd != 0x55555555,
"RegQueryInfoKeyW - cbSd = %lu\n", cbSd);
34 ok_(
File,
Line)(cbSd == 0,
"RegQueryInfoKeyW - cbSd = %lu\n", cbSd);
37 ret =
RegQueryInfoKeyA(
hKey,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL, &cbSd,
NULL);
40 ok_(
File,
Line)(cbSd != 0 && cbSd != 0x55555555,
"RegQueryInfoKeyA - cbSd = %lu\n", cbSd);
42 ok_(
File,
Line)(cbSd == 0,
"RegQueryInfoKeyA - cbSd = %lu\n", cbSd);
#define TestKeyAccess(da, er, es)
static VOID TestKeyAccess_(_In_ PCSTR File, _In_ INT Line, _In_ REGSAM DesiredAccess, _In_ LONG ExpectedReturn, _In_ BOOLEAN ExpectSd)
#define RegCloseKey(hKey)
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
LONG WINAPI RegQueryInfoKeyA(HKEY hKey, LPSTR lpClass, LPDWORD lpcClass, LPDWORD lpReserved, LPDWORD lpcSubKeys, LPDWORD lpcMaxSubKeyLen, LPDWORD lpcMaxClassLen, LPDWORD lpcValues, LPDWORD lpcMaxValueNameLen, LPDWORD lpcMaxValueLen, LPDWORD lpcbSecurityDescriptor, PFILETIME lpftLastWriteTime)
LONG WINAPI RegQueryInfoKeyW(HKEY hKey, LPWSTR lpClass, LPDWORD lpcClass, LPDWORD lpReserved, LPDWORD lpcSubKeys, LPDWORD lpcMaxSubKeyLen, LPDWORD lpcMaxClassLen, LPDWORD lpcValues, LPDWORD lpcMaxValueNameLen, LPDWORD lpcMaxValueLen, LPDWORD lpcbSecurityDescriptor, PFILETIME lpftLastWriteTime)
#define ERROR_ACCESS_DENIED
#define skip_(test, file, line,...)
#define KEY_CREATE_SUB_KEY
#define KEY_ENUMERATE_SUB_KEYS
_Must_inspect_result_ _In_ WDFDEVICE _In_ ULONG _In_ ACCESS_MASK DesiredAccess
#define HKEY_LOCAL_MACHINE