ReactOS 0.4.16-dev-122-g325d74c
main.c
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS 'General' Shim library
3 * LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4 * PURPOSE: Shim entrypoint
5 * COPYRIGHT: Copyright 2016,2017 Mark Jansen (mark.jansen@reactos.org)
6 */
7
8#define WIN32_NO_STATUS
9#include <windef.h>
10#include <winbase.h>
11#include <strsafe.h>
12#include <shimlib.h>
13
14/* Forward to the generic implementation */
15PHOOKAPI WINAPI GetHookAPIs(IN LPCSTR szCommandLine, IN LPCWSTR wszShimName, OUT PDWORD pdwHookCount)
16{
17 return ShimLib_GetHookAPIs(szCommandLine, wszShimName, pdwHookCount);
18}
19
20/* Forward to the generic implementation */
22{
23 return ShimLib_NotifyShims(fdwReason, ptr);
24}
25
27{
28 switch(dwReason)
29 {
32 break;
35 break;
36 }
37 return TRUE;
38}
DWORD dwReason
Definition: misc.cpp:141
HINSTANCE hInstance
Definition: charmap.c:19
#define TRUE
Definition: types.h:120
BOOL WINAPI NotifyShims(DWORD fdwReason, PVOID ptr)
Definition: main.c:21
PHOOKAPI WINAPI GetHookAPIs(IN LPCSTR szCommandLine, IN LPCWSTR wszShimName, OUT PDWORD pdwHookCount)
Definition: main.c:15
BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
Definition: main.c:26
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
#define DLL_PROCESS_DETACH
Definition: compat.h:130
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
static PVOID ptr
Definition: dispmode.c:27
DWORD * PDWORD
Definition: pedump.c:68
void ShimLib_Init(HINSTANCE hInstance)
Definition: shimlib.c:30
BOOL WINAPI ShimLib_NotifyShims(DWORD fdwReason, PVOID ptr)
Definition: shimlib.c:136
void ShimLib_Deinit(VOID)
Definition: shimlib.c:39
PHOOKAPI WINAPI ShimLib_GetHookAPIs(IN LPCSTR szCommandLine, IN LPCWSTR wszShimName, OUT PDWORD pdwHookCount)
Definition: shimlib.c:111
#define IN
Definition: typedefs.h:39
#define OUT
Definition: typedefs.h:40
#define WINAPI
Definition: msvc.h:6
const char * LPCSTR
Definition: xmlstorage.h:183
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185