Advertisement
0xNOP

OrdinalHook PseudoCode

Jun 26th, 2016
346
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. bool called;
  2. int count;
  3.  
  4. HookOrdinal145Proc();
  5. {
  6.     if (called == true && count == 1)
  7.         {
  8.             count += 1;
  9.             called = false;
  10.         }else if (called == true && count == 2)
  11.             {
  12.                 return null;
  13.             }
  14.     called = true;
  15.     return HookOrdinal145Next(); // Aunque called sea true, pero si count es igual a 2 o mas entonces
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement