mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:12:57 +00:00
37 lines
895 B
C
37 lines
895 B
C
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS Shim library
|
|
* FILE: dll/appcompat/shims/layer/main.c
|
|
* PURPOSE: Shim entrypoint
|
|
* PROGRAMMER: Mark Jansen
|
|
*/
|
|
|
|
#include <windows.h>
|
|
#include <strsafe.h>
|
|
#include <shimlib.h>
|
|
|
|
/* Forward to the generic implementation */
|
|
PHOOKAPI WINAPI GetHookAPIs(IN LPCSTR szCommandLine, IN LPCWSTR wszShimName, OUT PDWORD pdwHookCount)
|
|
{
|
|
return ShimLib_GetHookAPIs(szCommandLine, wszShimName, pdwHookCount);
|
|
}
|
|
|
|
/* PLDR_DATA_TABLE_ENTRY */
|
|
BOOL WINAPI NotifyShims(DWORD fdwReason, PVOID P)
|
|
{
|
|
return TRUE;
|
|
}
|
|
|
|
BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
|
|
{
|
|
switch(dwReason)
|
|
{
|
|
case DLL_PROCESS_ATTACH:
|
|
ShimLib_Init(hInstance);
|
|
break;
|
|
case DLL_PROCESS_DETACH:
|
|
ShimLib_Deinit();
|
|
break;
|
|
}
|
|
return TRUE;
|
|
}
|