mirror of
https://github.com/reactos/reactos.git
synced 2024-11-10 00:34:39 +00:00
38 lines
982 B
C
38 lines
982 B
C
/*
|
|
* PROJECT: ReactOS 'General' Shim library
|
|
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
|
|
* PURPOSE: Shim entrypoint
|
|
* COPYRIGHT: Copyright 2016,2017 Mark Jansen (mark.jansen@reactos.org)
|
|
*/
|
|
|
|
#define WIN32_NO_STATUS
|
|
#include <windef.h>
|
|
#include <winbase.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);
|
|
}
|
|
|
|
/* Forward to the generic implementation */
|
|
BOOL WINAPI NotifyShims(DWORD fdwReason, PVOID ptr)
|
|
{
|
|
return ShimLib_NotifyShims(fdwReason, ptr);
|
|
}
|
|
|
|
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;
|
|
}
|