11#define REGKEY_POLICIES L"Software\\Microsoft\\Windows\\CurrentVersion\\Policies"
12#define REGKEY_POLICIES_EXPLORER REGKEY_POLICIES L"\\Explorer"
21 DWORD cbValue, dwValue = 0;
28 cbValue =
sizeof(dwValue);
32 cbValue =
sizeof(dwValue);
45 {
L"Explorer",
L"NoRun" },
46 {
L"Explorer",
L"ForceActiveDesktopOn" },
47 {
L"Explorer",
L"NoActiveDesktop" },
48 {
L"Explorer",
L"NoDisconnect" },
49 {
L"Explorer",
L"NoRecentDocsHistory" },
50 {
L"Explorer",
L"NoDriveTypeAutoRun" },
51 {
L"Explorer",
L"NoSimpleStartMenu" },
52 {
L"System",
L"DontDisplayLastUserName" },
53 {
L"System",
L"ShutdownWithoutLogon" },
54 {
L"System",
L"UndockWithoutLogon" },
66#define DELETE_VALUE(hBaseKey) \
67 SHDeleteValueW((hBaseKey), REGKEY_POLICIES_EXPLORER, L"NoRun")
69#define SET_VALUE(hBaseKey, value) do { \
71 SHSetValueW((hBaseKey), REGKEY_POLICIES_EXPLORER, L"NoRun", \
72 REG_DWORD, &dwValue, sizeof(dwValue)); \
83 trace(
"Stage #%d\n", iStage);
131 for (iStage = 0; iStage < 7; ++iStage)
139 skip(
"SHGetRestriction not found\n");
EXTERN_C DWORD WINAPI SHGetRestriction(LPCWSTR lpSubKey, LPCWSTR lpSubName, LPCWSTR lpValue)
static void TEST_SHGetRestriction_Stage(INT iStage, FN_SHGetRestriction fnSHGetRestriction)
static DWORD Candidate_SHGetRestriction(LPCWSTR lpSubKey, LPCWSTR lpSubName, LPCWSTR lpValue)
static const TEST_ENTRY s_Entries[]
#define SET_VALUE(hBaseKey, value)
struct tagTEST_ENTRY * PTEST_ENTRY
BOOL(WINAPI * FN_SHSettingsChanged)(LPCVOID unused, LPCVOID inpRegKey)
struct tagTEST_ENTRY TEST_ENTRY
static void TEST_DoEntry(const TEST_ENTRY *entry, FN_SHGetRestriction fnSHGetRestriction)
DWORD(WINAPI * FN_SHGetRestriction)(LPCWSTR lpSubKey, LPCWSTR lpSubName, LPCWSTR lpValue)
#define DELETE_VALUE(hBaseKey)
#define ok_long(expression, result)
#define GetProcAddress(x, y)
DWORD WINAPI SHGetValueW(HKEY hKey, LPCWSTR lpszSubKey, LPCWSTR lpszValue, LPDWORD pwType, LPVOID pvData, LPDWORD pcbData)
static GLenum _GLUfuncptr fn
#define HKEY_LOCAL_MACHINE
#define HKEY_CURRENT_USER
#define MAKEINTRESOURCEA(i)