Go to the source code of this file.
◆ FindImportDescriptor()
Definition at line 4 of file apitest_iathook.h.
13 return ImportDescriptor;
int WINAPI lstrcmpiA(LPCSTR lpString1, LPCSTR lpString2)
IN PVOID IN PVOID IN USHORT IN USHORT Size
#define RtlImageDirectoryEntryToData
#define IMAGE_DIRECTORY_ENTRY_IMPORT
Referenced by RedirectIat().
◆ RedirectIat()
Definition at line 20 of file apitest_iathook.h.
52 skip(
"Unable to find the ImportDescriptor for %s\n", DllName);
int WINAPI lstrcmpiA(LPCSTR lpString1, LPCSTR lpString2)
struct _IMAGE_IMPORT_BY_NAME * PIMAGE_IMPORT_BY_NAME
#define IMAGE_SNAP_BY_ORDINAL32(Ordinal)
static PIMAGE_IMPORT_DESCRIPTOR FindImportDescriptor(PBYTE DllBase, PCSTR DllName)
BOOL NTAPI VirtualProtect(IN LPVOID lpAddress, IN SIZE_T dwSize, IN DWORD flNewProtect, OUT PDWORD lpflOldProtect)
union _IMAGE_THUNK_DATA32::@2088 u1
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 ACPI_STATUS const char UINT32 ACPI_STATUS const char UINT32 const char * FunctionName
#define PAGE_EXECUTE_READWRITE
PIMAGE_THUNK_DATA32 PIMAGE_THUNK_DATA
Referenced by hook_disp(), hook_theme(), RestoreIat(), and test_Sign_Media().
◆ RestoreIat()
Definition at line 57 of file apitest_iathook.h.
static BOOL RedirectIat(HMODULE TargetDll, PCSTR DllName, PCSTR FunctionName, ULONG_PTR NewFunction, ULONG_PTR *OriginalFunction)
ACPI_BUFFER *RetBuffer ACPI_BUFFER *RetBuffer char ACPI_WALK_RESOURCE_CALLBACK void *Context ACPI_BUFFER *RetBuffer UINT16 ACPI_RESOURCE **ResourcePtr ACPI_GENERIC_ADDRESS *Reg UINT32 *ReturnValue UINT8 UINT8 *Slp_TypB ACPI_PHYSICAL_ADDRESS PhysicalAddress64 UINT32 UINT32 *TimeElapsed UINT32 ACPI_STATUS const char UINT32 ACPI_STATUS const char UINT32 const char * FunctionName
Referenced by test_Sign_Media(), unhook_disp(), and unhook_theme().