Twain_DSM
1.0
|
The hook class... More...
Classes | |
struct | Pod |
Public Member Functions | |
bool | Hook (EHOOK _ehook) |
Derived from John Robbins' BugSlayer code in MSJ (so the 'I' in the comments in this function refers to John), this function hooks or unhooks the stuff we want to examine. More... | |
bool | DSID_Is_Hooked (TW_UINT32 DSID) |
Determine if the DS has been hooked by checking the ID. More... | |
void | Hook_Add_DSID (TW_UINT32 DSID) |
Add this DS to the list of being hooked. More... | |
bool | Hook_Remove_DSID (TW_UINT32 DSID) |
Remove this DS from the list of being hooked. More... | |
Private Attributes | |
struct CTwHook::Pod | pod |
bool CTwHook::DSID_Is_Hooked | ( | TW_UINT32 | DSID | ) |
Determine if the DS has been hooked by checking the ID.
[in] | DSID | The DS ID to check to see if it has been hooked |
Definition at line 581 of file hook.cpp.
References MAX_NUM_DS.
bool CTwHook::Hook | ( | EHOOK | _ehook | ) |
Derived from John Robbins' BugSlayer code in MSJ (so the 'I' in the comments in this function refers to John), this function hooks or unhooks the stuff we want to examine.
Note that this code is optimized to hook the Ldr functions in ntdll.dll. If you want to hook something else, especially if it's in a different DLL, you're going to have some work to do...
[in] | EHOOK | _ehook we're hooking or unhooking |
Definition at line 308 of file hook.cpp.
References SSTRCAT.
void CTwHook::Hook_Add_DSID | ( | TW_UINT32 | DSID | ) |
Add this DS to the list of being hooked.
[in] | DSID | The DS ID to add to the list |
bool CTwHook::Hook_Remove_DSID | ( | TW_UINT32 | DSID | ) |
Remove this DS from the list of being hooked.
[in] | DSID | The DS ID to remove from the list |
Definition at line 615 of file hook.cpp.
References kLOG, kLOGERR, and MAX_NUM_DS.