ReactOS 0.4.17-dev-736-g75e91de
shelltest.h
Go to the documentation of this file.
1#ifndef _SHELLTEST_H_
2#define _SHELLTEST_H_
3
4//#define _INC_WINDOWS
5#define COM_NO_WINDOWS_H
6
7#include <ntstatus.h>
8#define WIN32_NO_STATUS
9#include <apitest.h>
10#include <winreg.h>
11#include <shlobj.h>
12#include <shellapi.h>
13#include <shlwapi.h>
14#include <atlbase.h>
15#include <atlcom.h>
16
17// Vista's shell32 is buggy so we need to skip some tests there.
19
20VOID PathToIDList(LPCWSTR pszPath, ITEMIDLIST** ppidl);
21
23{
24 return (s && *s) ? s : L"(Default)";
25}
26
28{
29 return SHSetValueW(hKey, Path, Name, Type, (LPCVOID)Str, (lstrlenW(Str) + 1) * sizeof(WCHAR));
30}
31
33{
35}
36
37#endif /* !_SHELLTEST_H_ */
PRTL_UNICODE_STRING_BUFFER Path
Type
Definition: Type.h:7
#define GetNTVersion()
Definition: apitest.h:17
LPWSTR Name
Definition: desk.c:124
#define lstrlenW
Definition: compat.h:750
DWORD WINAPI SHSetValueW(HKEY hkey, const WCHAR *subkey, const WCHAR *value, DWORD type, const void *data, DWORD data_len)
Definition: main.c:2292
#define L(x)
Definition: resources.c:13
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
FxAutoRegKey hKey
GLdouble s
Definition: gl.h:2039
unsigned int UINT
Definition: sysinfo.c:13
#define REG_SZ
Definition: layer.c:22
CONST void * LPCVOID
Definition: minwindef.h:164
short WCHAR
Definition: pedump.c:58
#define _WIN32_WINNT_VISTA
Definition: sdkddkver.h:25
VOID PathToIDList(LPCWSTR pszPath, ITEMIDLIST **ppidl)
Definition: shelltest.cpp:83
static UINT RegSetStringEx(HKEY hKey, LPCWSTR Path, LPCWSTR Name, LPCWSTR Str, DWORD Type)
Definition: shelltest.h:27
static LPCWSTR RegNameDisp(LPCWSTR s)
Definition: shelltest.h:22
static UINT RegSetString(HKEY hKey, LPCWSTR Path, LPCWSTR Name, LPCWSTR Str)
Definition: shelltest.h:32
static const BOOL g_bVista
Definition: shelltest.h:18
const uint16_t * LPCWSTR
Definition: typedefs.h:57