Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions FstHook/Hook.cpp
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,17 +4,17 @@
#include "Hook.h"
#include "HookDispatch.h"

extern LPVOID DispatchTable;
extern LPVOID *DispatchTable;
extern DWORD DispatchTableEnd;

/*
Hooks a function by adding it to the dispatch table
*/
BOOL AddProxyProcedure(CHAR *FunctionName, DWORD NumParameters, LPVOID ProxyAddress)
{
LPVOID FunctionAddress;
LPVOID *LocalDispatchTable;
DWORD ordinal, TableSize;
DWORD ordinal = 0, TableSize = 0;
LPVOID FunctionAddress = NULL;
LPVOID *LocalDispatchTable = DispatchTable;

FunctionAddress = GetProcAddress(GetModuleHandleA("ntdll.dll"), FunctionName);
if(!FunctionAddress)
Expand Down
2 changes: 1 addition & 1 deletion FstHook/HookDispatch.cpp
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,7 +2,7 @@
#include <stdio.h>
#include "HookDispatch.h"

LPVOID DispatchTable = NULL;
LPVOID *DispatchTable = NULL;
DWORD DispatchTableEnd = 0;

/*
Expand Down