ReactOS
0.4.15-dev-4869-g35a816a
|
#include <windef.h>
#include <winbase.h>
#include <shimlib.h>
#include <strsafe.h>
#include <ndk/rtlfuncs.h>
Go to the source code of this file.
Classes | |
struct | UsedShim |
Macros | |
#define | WIN32_NO_STATUS |
Typedefs | |
typedef struct UsedShim | UsedShim |
typedef struct UsedShim * | pUsedShim |
Functions | |
void | ShimLib_Init (HINSTANCE hInstance) |
void | ShimLib_Deinit (VOID) |
PVOID | ShimLib_ShimMalloc (SIZE_T dwSize) |
void | ShimLib_ShimFree (PVOID pData) |
HINSTANCE | ShimLib_Instance (VOID) |
PCSTR | ShimLib_StringNDuplicateA (PCSTR szString, SIZE_T stringLengthIncludingNullTerm) |
PCSTR | ShimLib_StringDuplicateA (PCSTR szString) |
BOOL | ShimLib_StrAEqualsWNC (PCSTR szString, PCWSTR wszString) |
_SHMALLOC (".shm$AAA") | |
_SHMALLOC (".shm$ZZZ") | |
PHOOKAPI WINAPI | ShimLib_GetHookAPIs (IN LPCSTR szCommandLine, IN LPCWSTR wszShimName, OUT PDWORD pdwHookCount) |
BOOL WINAPI | ShimLib_NotifyShims (DWORD fdwReason, PVOID ptr) |
VOID | SeiInitDebugSupport (VOID) |
BOOL WINAPIV | SeiDbgPrint (SEI_LOG_LEVEL Level, PCSTR Function, PCSTR Format,...) |
Variables | |
ULONG | g_ShimEngDebugLevel = 0xffffffff |
static HINSTANCE | g_ShimLib_hInstance |
static HANDLE | g_ShimLib_Heap |
static PSLIST_HEADER | g_UsedShims |
BOOL WINAPIV SeiDbgPrint | ( | SEI_LOG_LEVEL | Level, |
PCSTR | Function, | ||
PCSTR | Format, | ||
... | |||
) |
Outputs diagnostic info.
[in] | Level | The level to log this message with, choose any of [SHIM_ERR, SHIM_WARN, SHIM_INFO]. |
[in] | FunctionName | The function this log should be attributed to. |
[in] | Format | The format string. |
... | Variable arguments providing additional information. |
Definition at line 197 of file shimlib.c.
Definition at line 165 of file shimlib.c.
Referenced by SeiDbgPrint().
PHOOKAPI WINAPI ShimLib_GetHookAPIs | ( | IN LPCSTR | szCommandLine, |
IN LPCWSTR | wszShimName, | ||
OUT PDWORD | pdwHookCount | ||
) |
Definition at line 111 of file shimlib.c.
Referenced by GetHookAPIs().
Definition at line 30 of file shimlib.c.
Referenced by DllMain().
Definition at line 55 of file shimlib.c.
Referenced by APIHook_FreeLibrary(), APIHook_GetProcAddress(), APIHook_LoadLibraryA(), APIHook_LoadLibraryExA(), APIHook_LoadLibraryExW(), and APIHook_LoadLibraryW().
Definition at line 136 of file shimlib.c.
Referenced by NotifyShims().
Definition at line 45 of file shimlib.c.
Referenced by FreeLibrary(), InitIgnoreFreeLibrary(), ShimLib_GetHookAPIs(), ShimLib_Init(), and ShimLib_StringNDuplicateA().
Definition at line 67 of file shimlib.c.
Referenced by InitIgnoreFreeLibrary().
Definition at line 60 of file shimlib.c.
Referenced by InitIgnoreFreeLibrary(), and ShimLib_StringDuplicateA().
ULONG g_ShimEngDebugLevel = 0xffffffff |
Definition at line 25 of file shimlib.c.
Referenced by SeiDbgPrint(), and SeiInitDebugSupport().
|
static |
Definition at line 27 of file shimlib.c.
Referenced by ShimLib_Deinit(), ShimLib_Init(), ShimLib_ShimFree(), and ShimLib_ShimMalloc().
|
static |
Definition at line 26 of file shimlib.c.
Referenced by ShimLib_Init(), and ShimLib_Instance().
|
static |
Definition at line 28 of file shimlib.c.
Referenced by ShimLib_GetHookAPIs(), ShimLib_Init(), and ShimLib_NotifyShims().