ReactOS  0.4.14-dev-608-gd495a4f
apphelp_apitest.h
Go to the documentation of this file.
1 #ifndef APPHELP_APITEST_H
2 #define APPHELP_APITEST_H
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 
8 
9 /* data.c */
10 void test_create_db_imp(const WCHAR* name, int win10);
12 void test_create_exe_imp(const WCHAR* name, int skip_rsrc_exports);
13 void test_create_file_imp(const WCHAR* name, const char* contents, size_t len);
14 void test_create_ne_imp(const WCHAR* name, int skip_names);
17 void silence_debug_output(void); // Silence output if the environment variable is not set.
18 
19 #define test_create_db (winetest_set_location(__FILE__, __LINE__), 0) ? (void)0 : test_create_db_imp
20 #define test_create_exe (winetest_set_location(__FILE__, __LINE__), 0) ? (void)0 : test_create_exe_imp
21 #define test_create_file (winetest_set_location(__FILE__, __LINE__), 0) ? (void)0 : test_create_file_imp
22 #define test_create_ne (winetest_set_location(__FILE__, __LINE__), 0) ? (void)0 : test_create_ne_imp
23 
24 
26 
27 #define WINVER_ANY 0
28 #define WINVER_WINXP 0x0501
29 #define WINVER_2003 0x0502
30 #define WINVER_VISTA 0x0600
31 #define WINVER_WIN7 0x0601
32 #define WINVER_WIN8 0x0602
33 #define WINVER_WIN10 0x0a00
34 
35 
36 typedef WORD TAG;
37 typedef DWORD TAGID;
38 typedef DWORD TAGREF;
39 typedef UINT64 QWORD;
40 typedef VOID* PDB;
41 typedef VOID* HSDB;
42 typedef INT PATH_TYPE;
43 
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 
53 
54 
56 {
69 
70 
71 #define SDBQUERYRESULT_EXPECTED_SIZE_2k3 344
72 
73 #define SDB_MAX_EXES_2k3 4
74 
75 typedef struct tagSDBQUERYRESULT_2k3
76 {
80  TAGREF trApphelp; // probably?
83  GUID guidID; // probably?
84  DWORD dwFlags; // probably?
88 
89 
90 
91 
92 
95 
96 
97 
98 
99 #ifdef __cplusplus
100 } // extern "C"
101 #endif
102 
103 #endif // APPHELP_APITEST_H
DWORD TAGREF
#define SDBQUERYRESULT_EXPECTED_SIZE_VISTA
INT PATH_TYPE
#define SDB_MAX_EXES_VISTA
void test_create_exe_imp(const WCHAR *name, int skip_rsrc_exports)
Definition: data.c:467
VOID * PDB
void test_create_ne_imp(const WCHAR *name, int skip_names)
Definition: data.c:515
DWORD get_module_version(HMODULE mod)
Definition: data.c:803
int32_t INT
Definition: typedefs.h:56
struct tagSDBQUERYRESULT_2k3 SDBQUERYRESULT_2k3
DWORD get_host_winver(void)
Definition: data.c:788
TAGREF atrExes[SDB_MAX_EXES_VISTA]
VOID * HSDB
static DWORD g_WinVersion
struct tagSDBQUERYRESULT_2k3 * PSDBQUERYRESULT_2k3
UINT64 QWORD
void test_create_db_imp(const WCHAR *name, int win10)
Definition: data.c:770
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define SDB_MAX_EXES_2k3
unsigned short WORD
Definition: ntddk_ex.h:93
unsigned long DWORD
Definition: ntddk_ex.h:95
#define SDB_MAX_LAYERS
#define SDBQUERYRESULT_EXPECTED_SIZE_2k3
WORD TAG
void silence_debug_output(void)
Definition: data.c:833
GLenum GLsizei len
Definition: glext.h:6722
static BOOL win10
Definition: render.c:66
GUID rgGuidDB[SDB_MAX_SDBS]
TAGREF atrLayers[SDB_MAX_LAYERS]
TAGREF atrLayers[SDB_MAX_LAYERS]
void test_create_file_imp(const WCHAR *name, const char *contents, size_t len)
Definition: data.c:547
struct tagSDBQUERYRESULT_VISTA * PSDBQUERYRESULT_VISTA
Definition: name.c:38
GUID rgGuidDB[SDB_MAX_SDBS]
DWORD adwExeFlags[SDB_MAX_EXES_VISTA]
DWORD TAGID
unsigned long long UINT64
TAGREF atrExes[SDB_MAX_EXES_2k3]
struct tagSDBQUERYRESULT_VISTA SDBQUERYRESULT_VISTA
DWORD test_get_db_size()
Definition: data.c:765
static int mod
Definition: i386-dis.c:1273
#define SDB_MAX_SDBS
C_ASSERT(sizeof(SDBQUERYRESULT_VISTA)==SDBQUERYRESULT_EXPECTED_SIZE_VISTA)