start cleaning up hookman
This commit is contained in:
parent
60866c158a
commit
dff4ae3463
@ -144,7 +144,7 @@ protected:
|
||||
fCopy fCpy;
|
||||
fLength fLen;
|
||||
|
||||
public:
|
||||
//public:
|
||||
// - Construction -
|
||||
AVLTree() {}
|
||||
|
||||
|
@ -208,15 +208,6 @@ HookManager::~HookManager()
|
||||
//DeleteCriticalSection(&hmcs);
|
||||
}
|
||||
|
||||
TextThread *HookManager::FindSingle(DWORD pid, DWORD hook, DWORD retn, DWORD split)
|
||||
{
|
||||
if (pid == 0)
|
||||
return thread_table->FindThread(0);
|
||||
ThreadParameter tp = {pid, hook, retn, split};
|
||||
TreeNode<ThreadParameter *,DWORD> *node = Search(&tp);
|
||||
return node ? thread_table->FindThread(node->data) : nullptr;
|
||||
}
|
||||
|
||||
TextThread *HookManager::FindSingle(DWORD number)
|
||||
{ return (number & 0x80008000) ? nullptr : thread_table->FindThread(number); }
|
||||
|
||||
@ -707,8 +698,6 @@ ProcessRecord *HookManager::GetProcessRecord(DWORD pid)
|
||||
//return pr;
|
||||
}
|
||||
|
||||
DWORD HookManager::GetCurrentPID() { return current_pid; }
|
||||
|
||||
HANDLE HookManager::GetCmdHandleByPID(DWORD pid)
|
||||
{
|
||||
HM_LOCK;
|
||||
@ -734,8 +723,6 @@ MK_BASIC_TYPE(LPVOID)
|
||||
// return hash;
|
||||
//}
|
||||
|
||||
DWORD GetCurrentPID() { return ::man->GetCurrentPID(); }
|
||||
|
||||
HANDLE GetCmdHandleByPID(DWORD pid) { return ::man->GetCmdHandleByPID(pid); }
|
||||
|
||||
//void AddLink(WORD from, WORD to) { ::man->AddLink(from, to); }
|
||||
|
@ -46,10 +46,8 @@ public:
|
||||
HookManager();
|
||||
~HookManager();
|
||||
// jichi 12/26/2013: remove virtual modifiers
|
||||
TextThread *FindSingle(DWORD pid, DWORD hook, DWORD retn, DWORD split);
|
||||
TextThread *FindSingle(DWORD number);
|
||||
ProcessRecord *GetProcessRecord(DWORD pid);
|
||||
DWORD GetProcessIDByPath(LPCWSTR str); // private
|
||||
void RemoveSingleThread(DWORD number);
|
||||
//void LockHookman();
|
||||
//void UnlockHookman();
|
||||
@ -75,7 +73,6 @@ public:
|
||||
void UnRegisterProcess(DWORD pid);
|
||||
//void SetName(DWORD);
|
||||
|
||||
DWORD GetCurrentPID(); // private
|
||||
HANDLE GetCmdHandleByPID(DWORD pid);
|
||||
|
||||
ConsoleCallback RegisterConsoleCallback(ConsoleCallback cf)
|
||||
|
Loading…
x
Reference in New Issue
Block a user