1f3a0f6bb233daf927682692d88ad3de143cc320
[reactos.git] / modules / rostests / apitests / appshim / appshim_apitest.h
1 #ifndef APPSHIM_APITEST_H
2 #define APPSHIM_APITEST_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 typedef struct tagHOOKAPI {
9 PCSTR LibraryName;
10 PCSTR FunctionName;
11 PVOID ReplacementFunction;
12 PVOID OriginalFunction;
13 PVOID Unk1;
14 PVOID Unk2;
15 } HOOKAPI, *PHOOKAPI;
16
17 typedef BOOL (WINAPI* tSDBGETAPPPATCHDIR)(PVOID hsdb, LPWSTR path, DWORD size);
18 typedef PHOOKAPI (WINAPI* tGETHOOKAPIS)(LPCSTR szCommandLine, LPCWSTR wszShimName, PDWORD pdwHookCount);
19
20
21 /* versionlie.c */
22 void expect_shim_imp(PHOOKAPI hook, PCSTR library, PCSTR function, PCSTR shim, int* same);
23 #define expect_shim (winetest_set_location(__FILE__, __LINE__), 0) ? (void)0 : expect_shim_imp
24
25
26 BOOL LoadShimDLL(PCWSTR ShimDll, HMODULE* module, tGETHOOKAPIS* ppGetHookAPIs);
27 tGETHOOKAPIS LoadShimDLL2(PCWSTR ShimDll);
28
29
30
31 #ifdef __cplusplus
32 } // extern "C"
33 #endif
34
35 #endif // APPHELP_APITEST_H