[APPHELP][APPHELP_APITEST] Implement various VersionLie shims. CORE-11299 #resolve
[reactos.git] / reactos / dll / appcompat / shims / layer / main.c
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS Shim library
4 * FILE: dll/appcompat/shims/layer/main.c
5 * PURPOSE: Shim entrypoint
6 * PROGRAMMER: Mark Jansen
7 */
8
9 #include <windows.h>
10 #include <strsafe.h>
11 #include <shimlib.h>
12
13 /* Forward to the generic implementation */
14 PHOOKAPI WINAPI GetHookAPIs(IN LPCSTR szCommandLine, IN LPCWSTR wszShimName, OUT PDWORD pdwHookCount)
15 {
16 return ShimLib_GetHookAPIs(szCommandLine, wszShimName, pdwHookCount);
17 }
18
19 /* PLDR_DATA_TABLE_ENTRY */
20 BOOL WINAPI NotifyShims(DWORD fdwReason, PVOID P)
21 {
22 return TRUE;
23 }
24
25 BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
26 {
27 switch(dwReason)
28 {
29 case DLL_PROCESS_ATTACH:
30 ShimLib_Init(hInstance);
31 break;
32 case DLL_PROCESS_DETACH:
33 ShimLib_Deinit();
34 break;
35 }
36 return TRUE;
37 }