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.
18
static
const
BOOL
g_bVista
= (
GetNTVersion
() ==
_WIN32_WINNT_VISTA
);
19
20
VOID
PathToIDList
(
LPCWSTR
pszPath,
ITEMIDLIST
** ppidl);
21
22
static
inline
LPCWSTR
RegNameDisp
(
LPCWSTR
s
)
23
{
24
return
(
s
&& *
s
) ?
s
:
L
"(Default)"
;
25
}
26
27
static
inline
UINT
RegSetStringEx
(
HKEY
hKey
,
LPCWSTR
Path
,
LPCWSTR
Name
,
LPCWSTR
Str
,
DWORD
Type
)
28
{
29
return
SHSetValueW
(
hKey
,
Path
,
Name
,
Type
, (
LPCVOID
)
Str
, (
lstrlenW
(
Str
) + 1) *
sizeof
(
WCHAR
));
30
}
31
32
static
inline
UINT
RegSetString
(
HKEY
hKey
,
LPCWSTR
Path
,
LPCWSTR
Name
,
LPCWSTR
Str
)
33
{
34
return
RegSetStringEx
(
hKey
,
Path
,
Name
,
Str
,
REG_SZ
);
35
}
36
37
#endif
/* !_SHELLTEST_H_ */
Path
PRTL_UNICODE_STRING_BUFFER Path
Definition:
RtlNtPathNameToDosPathName.c:10
Str
PCWSTR Str
Definition:
RtlxUnicodeStringToAnsiSize.c:14
Type
Type
Definition:
Type.h:7
apitest.h
GetNTVersion
#define GetNTVersion()
Definition:
apitest.h:17
Name
LPWSTR Name
Definition:
desk.c:124
lstrlenW
#define lstrlenW
Definition:
compat.h:750
SHSetValueW
DWORD WINAPI SHSetValueW(HKEY hkey, const WCHAR *subkey, const WCHAR *value, DWORD type, const void *data, DWORD data_len)
Definition:
main.c:2292
L
#define L(x)
Definition:
resources.c:13
BOOL
unsigned int BOOL
Definition:
ntddk_ex.h:94
DWORD
unsigned long DWORD
Definition:
ntddk_ex.h:95
hKey
FxAutoRegKey hKey
Definition:
fxdriverapikm.cpp:59
s
GLdouble s
Definition:
gl.h:2039
UINT
unsigned int UINT
Definition:
sysinfo.c:13
void
Definition:
nsiface.idl:2307
REG_SZ
#define REG_SZ
Definition:
layer.c:22
LPCVOID
CONST void * LPCVOID
Definition:
minwindef.h:164
ntstatus.h
WCHAR
short WCHAR
Definition:
pedump.c:58
_WIN32_WINNT_VISTA
#define _WIN32_WINNT_VISTA
Definition:
sdkddkver.h:25
shellapi.h
PathToIDList
VOID PathToIDList(LPCWSTR pszPath, ITEMIDLIST **ppidl)
Definition:
shelltest.cpp:83
RegSetStringEx
static UINT RegSetStringEx(HKEY hKey, LPCWSTR Path, LPCWSTR Name, LPCWSTR Str, DWORD Type)
Definition:
shelltest.h:27
RegNameDisp
static LPCWSTR RegNameDisp(LPCWSTR s)
Definition:
shelltest.h:22
RegSetString
static UINT RegSetString(HKEY hKey, LPCWSTR Path, LPCWSTR Name, LPCWSTR Str)
Definition:
shelltest.h:32
g_bVista
static const BOOL g_bVista
Definition:
shelltest.h:18
shlobj.h
_ITEMIDLIST
Definition:
shtypes.idl:33
LPCWSTR
const uint16_t * LPCWSTR
Definition:
typedefs.h:57
winreg.h
modules
rostests
apitests
shell32
shelltest.h
Generated on Mon Aug 31 2026 06:10:02 for ReactOS by
1.9.6