Advertisement
Broihon

Untitled

Jan 2nd, 2017
988
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #pragma once
  2.  
  3. #ifndef DETOUR_H
  4. #define DETOUR_H
  5.  
  6. #include <Windows.h>
  7.  
  8. class Detour
  9. {
  10. public:
  11.     Detour();
  12.     ~Detour();
  13.  
  14.     void * CreateDetour(void * pTarget, void * pHook, UINT Length, bool Active);
  15.     bool Activate();
  16.     bool Deactivate();
  17.     bool Remove();
  18.  
  19. private:
  20.     void *  m_pTarget;
  21.     void *  m_pHook;
  22.     void *  m_pTrp;
  23.     UINT    m_Length;
  24.     bool    m_State;
  25.     bool    m_Init;
  26.  
  27.     bool Hook();
  28. };
  29.  
  30. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement