SafetyHook: safetyhook::Context32 Struct Reference

SafetyHook

Loading...
Searching...
No Matches
Public Attributes | List of all members
safetyhook::Context32 Struct Reference

Context structure for 32-bit MidHook. More...

`#include <context.hpp>`

## Public Attributes
Xmm | xmm0
Xmm | xmm1
Xmm | xmm2
Xmm | xmm3
Xmm | xmm4
Xmm | xmm5
Xmm | xmm6
Xmm | xmm7
uintptr_t | eflags
uintptr_t | edi
uintptr_t | esi
uintptr_t | edx
uintptr_t | ecx
uintptr_t | ebx
uintptr_t | eax
uintptr_t | ebp
uintptr_t | esp
uintptr_t | trampoline_esp
uintptr_t | eip

## Detailed Description

Context structure for 32-bit MidHook.

This structure is used to pass the context of the hooked function to the destination allowing full access to the 32-bit registers at the moment the hook is called.

Note
  eip will point to a trampoline containing the replaced instruction(s).
  esp is read-only. Modifying it will have no effect. Use trampoline_esp to modify esp if needed but make sure the top of the stack is the eip you want to resume at.

The documentation for this struct was generated from the following file:

- C:/M/B/src/safetyhook-0.6.5/include/safetyhook/context.hpp