#include <apitest.h>
#include <shlwapi.h>
Go to the source code of this file.
◆ DELETE_VALUE
◆ REGKEY_POLICIES
#define REGKEY_POLICIES L"Software\\Microsoft\\Windows\\CurrentVersion\\Policies" |
◆ REGKEY_POLICIES_EXPLORER
◆ SET_VALUE
Value: do { \
} while (0)
#define REGKEY_POLICIES_EXPLORER
Definition at line 69 of file SHGetRestriction.c.
◆ FN_SHGetRestriction
◆ FN_SHSettingsChanged
◆ PTEST_ENTRY
◆ TEST_ENTRY
◆ Candidate_SHGetRestriction()
Definition at line 18 of file SHGetRestriction.c.
19{
21 DWORD cbValue, dwValue = 0;
22
23 if (!lpSubKey)
25
27
28 cbValue = sizeof(dwValue);
30 return dwValue;
31
32 cbValue = sizeof(dwValue);
34 return dwValue;
35}
DWORD WINAPI SHGetValueW(HKEY hKey, LPCWSTR lpszSubKey, LPCWSTR lpszValue, LPDWORD pwType, LPVOID pvData, LPDWORD pcbData)
#define HKEY_LOCAL_MACHINE
#define HKEY_CURRENT_USER
Referenced by TEST_DoEntry().
◆ START_TEST()
Definition at line 123 of file SHGetRestriction.c.
124{
128
130 {
131 for (iStage = 0; iStage < 7; ++iStage)
133
136 }
137 else
138 {
139 skip(
"SHGetRestriction not found\n");
140 }
141
143}
static void TEST_SHGetRestriction_Stage(INT iStage, FN_SHGetRestriction fnSHGetRestriction)
DWORD(WINAPI * FN_SHGetRestriction)(LPCWSTR lpSubKey, LPCWSTR lpSubName, LPCWSTR lpValue)
#define DELETE_VALUE(hBaseKey)
#define GetProcAddress(x, y)
static GLenum _GLUfuncptr fn
#define MAKEINTRESOURCEA(i)
◆ TEST_DoEntry()
◆ TEST_SHGetRestriction_Stage()
Definition at line 76 of file SHGetRestriction.c.
79{
80 size_t iItem;
82
83 trace(
"Stage #%d\n", iStage);
84
85 switch (iStage)
86 {
87 case 0:
90 break;
91 case 1:
94 break;
95 case 2:
98 break;
99 case 3:
102 break;
103 case 4:
106 break;
107 case 5:
110 break;
111 case 6:
114 break;
115 }
116
118 {
120 }
121}
static const TEST_ENTRY s_Entries[]
#define SET_VALUE(hBaseKey, value)
static void TEST_DoEntry(const TEST_ENTRY *entry, FN_SHGetRestriction fnSHGetRestriction)
Referenced by START_TEST().
◆ s_Entries
Initial value:=
{
{
L"Explorer",
L"NoRun" },
{
L"Explorer",
L"ForceActiveDesktopOn" },
{
L"Explorer",
L"NoActiveDesktop" },
{
L"Explorer",
L"NoDisconnect" },
{
L"Explorer",
L"NoRecentDocsHistory" },
{
L"Explorer",
L"NoDriveTypeAutoRun" },
{
L"Explorer",
L"NoSimpleStartMenu" },
{
L"System",
L"DontDisplayLastUserName" },
{
L"System",
L"ShutdownWithoutLogon" },
{
L"System",
L"UndockWithoutLogon" },
}
Definition at line 43 of file SHGetRestriction.c.
Referenced by TEST_SHGetRestriction_Stage().