ReactOS 0.4.15-dev-7906-g1b85a5f
apphelp_apitest.h
Go to the documentation of this file.
1#ifndef APPHELP_APITEST_H
2#define APPHELP_APITEST_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8/* data.c */
9void test_create_db_imp(const WCHAR* name, int win10);
11void test_create_exe_imp(const WCHAR* name, int skip_rsrc_exports);
12void test_create_file_imp(const WCHAR* name, const char* contents, size_t len);
13void test_create_ne_imp(const WCHAR* name, int skip_names);
16void silence_debug_output(void); // Silence output if the environment variable is not set.
17
18#define test_create_db (winetest_set_location(__FILE__, __LINE__), 0) ? (void)0 : test_create_db_imp
19#define test_create_exe (winetest_set_location(__FILE__, __LINE__), 0) ? (void)0 : test_create_exe_imp
20#define test_create_file (winetest_set_location(__FILE__, __LINE__), 0) ? (void)0 : test_create_file_imp
21#define test_create_ne (winetest_set_location(__FILE__, __LINE__), 0) ? (void)0 : test_create_ne_imp
22
23/* register.cpp */
25
26extern DWORD g_WinVersion;
27
28#define WINVER_ANY 0
29#define WINVER_WINXP 0x0501
30#define WINVER_2003 0x0502
31#define WINVER_VISTA 0x0600
32#define WINVER_WIN7 0x0601
33#define WINVER_WIN8 0x0602
34#define WINVER_WIN10 0x0a00
35
36
37typedef WORD TAG;
38typedef DWORD TAGID;
39typedef DWORD TAGREF;
40typedef UINT64 QWORD;
41typedef VOID* PDB;
42typedef VOID* HSDB;
43typedef INT PATH_TYPE;
44
45
46#define SDB_MAX_SDBS 16
47#define SDB_MAX_EXES_VISTA 16
48#define SDB_MAX_LAYERS 8
49#define SHIMREG_DISABLE_LAYER (0x00000020)
50
51#define SDBQUERYRESULT_EXPECTED_SIZE_VISTA 456
52
54{
67
68#define SDBQUERYRESULT_EXPECTED_SIZE_2k3 344
69
70#define SDB_MAX_EXES_2k3 4
71
73{
77 TAGREF trApphelp; // probably?
80 GUID guidID; // probably?
81 DWORD dwFlags; // probably?
85
88
89
90#ifdef __cplusplus
91} // extern "C"
92#endif
93
94#endif // APPHELP_APITEST_H
unsigned long long UINT64
#define SDB_MAX_EXES_VISTA
#define SDB_MAX_LAYERS
BOOL IsUserAdmin(VOID)
Definition: register.cpp:81
DWORD get_host_winver(void)
Definition: data.c:796
void test_create_ne_imp(const WCHAR *name, int skip_names)
Definition: data.c:523
DWORD get_module_version(HMODULE mod)
Definition: data.c:811
void test_create_exe_imp(const WCHAR *name, int skip_rsrc_exports)
Definition: data.c:467
struct tagSDBQUERYRESULT_VISTA SDBQUERYRESULT_VISTA
VOID * PDB
#define SDB_MAX_EXES_2k3
struct tagSDBQUERYRESULT_VISTA * PSDBQUERYRESULT_VISTA
void silence_debug_output(void)
Definition: data.c:841
DWORD TAGREF
#define SDBQUERYRESULT_EXPECTED_SIZE_2k3
UINT64 QWORD
#define SDBQUERYRESULT_EXPECTED_SIZE_VISTA
DWORD TAGID
#define SDB_MAX_SDBS
INT PATH_TYPE
DWORD g_WinVersion
Definition: data.c:795
void test_create_db_imp(const WCHAR *name, int win10)
Definition: data.c:778
WORD TAG
VOID * HSDB
void test_create_file_imp(const WCHAR *name, const char *contents, size_t len)
Definition: data.c:555
struct tagSDBQUERYRESULT_2k3 * PSDBQUERYRESULT_2k3
struct tagSDBQUERYRESULT_2k3 SDBQUERYRESULT_2k3
DWORD test_get_db_size()
Definition: data.c:773
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
unsigned short WORD
Definition: ntddk_ex.h:93
GLenum GLsizei len
Definition: glext.h:6722
static int mod
Definition: i386-dis.c:1288
#define C_ASSERT(e)
Definition: intsafe.h:73
static BOOL win10
Definition: render.c:66
static const char * contents
Definition: parser.c:511
Definition: name.c:39
GUID rgGuidDB[SDB_MAX_SDBS]
TAGREF atrLayers[SDB_MAX_LAYERS]
TAGREF atrExes[SDB_MAX_EXES_2k3]
TAGREF atrLayers[SDB_MAX_LAYERS]
TAGREF atrExes[SDB_MAX_EXES_VISTA]
DWORD adwExeFlags[SDB_MAX_EXES_VISTA]
GUID rgGuidDB[SDB_MAX_SDBS]
int32_t INT
Definition: typedefs.h:58
__wchar_t WCHAR
Definition: xmlstorage.h:180