NtInjectorThread.h
上传用户:jstlsd
上传日期:2007-01-13
资源大小:186k
文件大小:2k
源码类别:

钩子与API截获

开发平台:

Visual C++

  1. //---------------------------------------------------------------------------
  2. //
  3. // NtInjectorThread.h
  4. //
  5. // SUBSYSTEM: 
  6. // API Hooking system
  7. // MODULE:    
  8. // Implements a thread that uses an NT device driver
  9. //              for monitoring process creation
  10. //
  11. // DESCRIPTION:
  12. //
  13. // AUTHOR: Ivo Ivanov (ivopi@hotmail.com)
  14. //                                                                         
  15. //---------------------------------------------------------------------------
  16. #if !defined(_NTINJECTORTHREAD_H_)
  17. #define _NTINJECTORTHREAD_H_
  18. #if _MSC_VER > 1000
  19. #pragma once
  20. #endif // _MSC_VER > 1000
  21. //---------------------------------------------------------------------------
  22. //
  23. // Includes
  24. //
  25. //---------------------------------------------------------------------------
  26. #include "NtProcessMonitor.h"
  27. //---------------------------------------------------------------------------
  28. //
  29. // Forward declararions
  30. //
  31. //---------------------------------------------------------------------------
  32. class CRemThreadInjector;
  33. //---------------------------------------------------------------------------
  34. //
  35. // class CNtInjectorThread
  36. //
  37. //---------------------------------------------------------------------------
  38. class CNtInjectorThread: public CNtProcessMonitor  
  39. {
  40. public:
  41. CNtInjectorThread(CRemThreadInjector* pInjector);
  42. virtual ~CNtInjectorThread();
  43. private:
  44. virtual void OnCreateProcess(DWORD dwProcessId);
  45. virtual void OnTerminateProcess(DWORD dwProcessId);
  46. CRemThreadInjector* m_pInjector;
  47. };
  48. #endif // !defined(_NTINJECTORTHREAD_H_)
  49. //----------------------------End of the file -------------------------------