32 hook =
pGetHookAPIs(
"AvIFiL32.Dll;esent;esent*;ent.dll;msi.dll",
L"IgnoreFreeLibrary", &num_shims);
34 ok(
hook !=
NULL,
"Expected hook to be a valid pointer\n");
35 ok(num_shims == 1,
"Expected num_shims to be 1, was: %u\n", num_shims);
37 if (!
hook || !num_shims)
44 ok(avifil32 !=
NULL,
"Unable to load avifil32\n");
47 ok(esent !=
NULL,
"Unable to load esent\n");
50 ok(msi !=
NULL,
"Unable to load msi\n");
53 freeProc =
hook->ReplacementFunction;
55 ok(freeProc !=
NULL,
"\n");
61 ok(freeProc(avifil32),
"Unable to unload avifil32\n");
63 ok(avifil32 !=
NULL,
"avifil32 should not unload\n");
66 ok(freeProc(esent),
"Unable to unload esent\n");
68 ok(esent ==
NULL,
"esent should be unloaded\n");
71 ok(freeProc(msi),
"Unable to unload msi\n");
73 ok(msi !=
NULL,
"msi should not unload\n");
99 ok(avifil32 !=
NULL,
"Unable to load avifil32\n");
110 ok(esent !=
NULL,
"Unable to load esent\n");
121 ok(msi !=
NULL,
"Unable to load msi\n");
PHOOKAPI(WINAPI * tGETHOOKAPIS)(LPCSTR szCommandLine, LPCWSTR wszShimName, PDWORD pdwHookCount)
tGETHOOKAPIS LoadShimDLL2(PCWSTR ShimDll)
#define ok_ptr(expression, result)
BOOL(WINAPI * FREELIBRARYPROC)(HMODULE)
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
static void test_IgnoreFreeLibrary(VOID)
static tGETHOOKAPIS pGetHookAPIs
LONG winetest_get_failures(void)