ReactOS  0.4.14-dev-50-g13bb5e2
main.c File Reference
#include <windef.h>
#include <winbase.h>
#include <strsafe.h>
#include <shimlib.h>
Include dependency graph for main.c:

Go to the source code of this file.

Macros

#define WIN32_NO_STATUS
 

Functions

PHOOKAPI WINAPI GetHookAPIs (IN LPCSTR szCommandLine, IN LPCWSTR wszShimName, OUT PDWORD pdwHookCount)
 
BOOL WINAPI NotifyShims (DWORD fdwReason, PVOID ptr)
 
BOOL WINAPI DllMain (HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
 

Macro Definition Documentation

◆ WIN32_NO_STATUS

#define WIN32_NO_STATUS

Definition at line 8 of file main.c.

Function Documentation

◆ DllMain()

BOOL WINAPI DllMain ( HINSTANCE  hInstance,
DWORD  dwReason,
LPVOID  lpReserved 
)

Definition at line 26 of file main.c.

27 {
28  switch(dwReason)
29  {
30  case DLL_PROCESS_ATTACH:
32  break;
33  case DLL_PROCESS_DETACH:
35  break;
36  }
37  return TRUE;
38 }
#define TRUE
Definition: types.h:120
#define DLL_PROCESS_ATTACH
Definition: compat.h:120
void ShimLib_Init(HINSTANCE hInstance)
Definition: shimlib.c:30
DWORD dwReason
Definition: misc.cpp:154
void ShimLib_Deinit(VOID)
Definition: shimlib.c:39
#define DLL_PROCESS_DETACH
Definition: compat.h:119
HINSTANCE hInstance
Definition: main.c:36

◆ GetHookAPIs()

PHOOKAPI WINAPI GetHookAPIs ( IN LPCSTR  szCommandLine,
IN LPCWSTR  wszShimName,
OUT PDWORD  pdwHookCount 
)

Definition at line 15 of file main.c.

16 {
17  return ShimLib_GetHookAPIs(szCommandLine, wszShimName, pdwHookCount);
18 }
PHOOKAPI WINAPI ShimLib_GetHookAPIs(IN LPCSTR szCommandLine, IN LPCWSTR wszShimName, OUT PDWORD pdwHookCount)
Definition: shimlib.c:111

Referenced by SeiCreateShimModuleInfo().

◆ NotifyShims()

BOOL WINAPI NotifyShims ( DWORD  fdwReason,
PVOID  ptr 
)

Definition at line 21 of file main.c.

22 {
23  return ShimLib_NotifyShims(fdwReason, ptr);
24 }
static PVOID ptr
Definition: dispmode.c:27
BOOL WINAPI ShimLib_NotifyShims(DWORD fdwReason, PVOID ptr)
Definition: shimlib.c:136