25static void dump(
const char *
name,
const void *
ptr,
size_t siz)
27 char buf[256], sz[16];
32 const BYTE *pb =
reinterpret_cast<const BYTE *
>(
ptr);
47 static const LPCWSTR s_pszExplorer =
48 L"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer";
50 memset(prss, 0,
sizeof(*prss));
154 dump(
"SHELLSTATE", pss,
sizeof(*pss));
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__));
188 #error Unknown compiler.
198 pb =
reinterpret_cast<LPBYTE>(pss);
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
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)
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
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
300 #define DO_IT(x) do { trace(#x ";\n"); x; } while (0)
305 ok(pb[4] == 0x01 ||
dump_pss(pss),
"Unexpected pss ^\n");
309 ok(pb[12] == 0x01 ||
dump_pss(pss),
"Unexpected pss ^\n");
321 ok(pb[28] == 0x01 ||
dump_pss(pss),
"Unexpected pss ^\n");
static void dump(const char *name, const void *ptr, size_t siz)
#define CHECK_REG_FLAG(x)
static int dump_pss(SHELLSTATE *pss)
struct REGSHELLSTATE * PREGSHELLSTATE
static int read_advanced_key(SHELLSTATE *pss)
static int read_key(REGSHELLSTATE *prss)
#define RegCloseKey(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)
HKEY WINAPI SHGetShellKey(DWORD flags, LPCWSTR sub_key, BOOL create)
DWORD WINAPI SHQueryValueExW(HKEY hKey, LPCWSTR lpszValue, LPDWORD lpReserved, LPDWORD pwType, LPVOID pvData, LPDWORD pcbData)
GLenum GLuint GLenum GLsizei const GLchar * buf
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
static HMODULE MODULEINFO DWORD cb
DWORD WINAPI GetVersion()
VOID WINAPI SHGetSettings(LPSHELLFLAGSTATE lpsfs, DWORD dwMask)
VOID WINAPI SHGetSetSettings(LPSHELLSTATE lpss, DWORD dwMask, BOOL bSet)
STRSAFEAPI StringCbCatA(STRSAFE_LPSTR pszDest, size_t cbDest, STRSAFE_LPCSTR pszSrc)
STRSAFEAPI StringCbPrintfA(STRSAFE_LPSTR pszDest, size_t cbDest, STRSAFE_LPCSTR pszFormat,...)
STRSAFEAPI StringCbCopyA(STRSAFE_LPSTR pszDest, size_t cbDest, STRSAFE_LPCSTR pszSrc)
BOOL fDoubleClickInWebView
ULONG dwOSVersionInfoSize
#define HKEY_CURRENT_USER