159{
166
168
175
180
181#ifdef _MSC_VER
182 trace(
"_MSC_VER: 0x%08X\n",
int(_MSC_VER));
183#elif defined(__MINGW32__)
184 trace(
"__MINGW32__: 0x%08X\n",
int(__MINGW32__));
185#elif defined(__clang__)
186 trace(
"__clang__: 0x%08X\n",
int(__clang__));
187#else
188 #error Unknown compiler.
189#endif
190
196
198 pb =
reinterpret_cast<LPBYTE>(pss);
199
202 {
203 return;
204 }
205
208
210
211#define DUMP_LONG(x) trace(#x ": 0x%08X\n", int(x));
212#define DUMP_BOOL(x) trace(#x ": %d\n", !!int(x));
239#if NTDDI_VERSION >= 0x06000000
243#endif
244
245#define SSF_MASK \
246 (SSF_SHOWALLOBJECTS | SSF_SHOWEXTENSIONS | SSF_NOCONFIRMRECYCLE | \
247 SSF_SHOWCOMPCOLOR | SSF_DOUBLECLICKINWEBVIEW | SSF_DESKTOPHTML | \
248 SSF_WIN95CLASSIC | SSF_DONTPRETTYPATH | SSF_SHOWATTRIBCOL | \
249 SSF_MAPNETDRVBUTTON | SSF_SHOWINFOTIP | SSF_HIDEICONS)
250
251
252
253
256#define CHECK_REG_FLAG(x) ok(pss->x == ss.x, "ss.%s expected %d, was %d\n", #x, (int)pss->x, (int)ss.x)
270#if NTDDI_VERSION >= 0x06000000
273#endif
274
275
276 memset(&FlagState, 0,
sizeof(FlagState));
278#define CHECK_FLAG(x) ok(ss.x == FlagState.x, "FlagState.%s expected %d, was %d\n", #x, (int)ss.x, (int)FlagState.x)
292#if NTDDI_VERSION >= 0x06000000
295#endif
296
297#if 1
298 #define DO_IT(x) x
299#else
300 #define DO_IT(x) do { trace(#x ";\n"); x; } while (0)
301#endif
302
305 ok(pb[4] == 0x01 ||
dump_pss(pss),
"Unexpected pss ^\n");
306
309 ok(pb[12] == 0x01 ||
dump_pss(pss),
"Unexpected pss ^\n");
310
314
318
321 ok(pb[28] == 0x01 ||
dump_pss(pss),
"Unexpected pss ^\n");
322}
#define CHECK_REG_FLAG(x)
static int dump_pss(SHELLSTATE *pss)
static int read_advanced_key(SHELLSTATE *pss)
static int read_key(REGSHELLSTATE *prss)
DWORD WINAPI GetVersion()
VOID WINAPI SHGetSettings(LPSHELLFLAGSTATE lpsfs, DWORD dwMask)
VOID WINAPI SHGetSetSettings(LPSHELLSTATE lpss, DWORD dwMask, BOOL bSet)
BOOL fDoubleClickInWebView
ULONG dwOSVersionInfoSize