Advertisement
allen343434

Untitled

Mar 23rd, 2017
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.79 KB | None | 0 0
  1. #include "StandardIncludes.h"
  2. #include "Xor.h"
  3. #include <tlhelp32.h>
  4. #include <Psapi.h>
  5.  
  6. class CTools
  7. {
  8. public:
  9.  
  10. LPD3DXFONT pFont = NULL;
  11.  
  12. D3DVIEWPORT9 viewPort;
  13. D3DVIEWPORT9 g_ViewPort;
  14.  
  15. D3DXMATRIX ProjMatrix, ViewMatrix, WorldMatrix, Identity;
  16.  
  17. D3DXVECTOR3 GetMidPoint(D3DXVECTOR3 V1, D3DXVECTOR3 V2);
  18. D3DXVECTOR3 *W2S(LPDIRECT3DDEVICE9 pDevice, D3DXVECTOR3 &Position);
  19. D3DXVECTOR3 *W2S2(LPDIRECT3DDEVICE9 pDevice, D3DXVECTOR3 &Position);
  20.  
  21. DWORD FindPattern(char *module, char *pattern, char *mask, DWORD position);
  22. DWORD _FindPattern(DWORD dwAddress, DWORD dwLen, BYTE *bMask, char * szMask);
  23. DWORD SaveBytes(DWORD TargetFunction, unsigned char *backup);
  24. DWORD RestoreBytes(DWORD TargetFunction, unsigned char *Org_Bytes);
  25. DWORD D3D9VTable();
  26.  
  27. BOOL Init;
  28. BOOL CheckWindowsVersion(DWORD dwMajorVersion, DWORD dwMinorVersion, DWORD dwProductType);
  29.  
  30. VOID StebWriteText(LPDIRECT3DDEVICE9 pDevice, INT x, INT y, DWORD color, CHAR *text);
  31. VOID WriteText(LPDIRECT3DDEVICE9 pDevice, INT x, INT y, DWORD color, CHAR *text);
  32. VOID FillRGB(int x, int y, int w, int h, D3DCOLOR color, LPDIRECT3DDEVICE9 pDevice);
  33. VOID DrawPoint(int x, int y, int w, int h, D3DCOLOR color, LPDIRECT3DDEVICE9 pDevice);
  34. VOID DrawFilledRectangle(D3DXVECTOR2 Pos, D3DXVECTOR2 Size, D3DCOLOR Color);
  35. VOID DrawCircle(D3DXVECTOR2 Pos, float Radius, int Sides, D3DCOLOR Color);
  36. VOID DrawMouse(D3DXVECTOR2 Pos, D3DCOLOR Color);
  37. VOID __cdecl LogError(const char * fmt, ...);
  38. VOID WINAPI WriteMemory(LPVOID lpAddress, LPBYTE lpBuffer, DWORD dwLengh);
  39. VOID *DetourCreate(BYTE *src, CONST BYTE *dst, CONST INT len);
  40. VOID WINAPI WriteJump(DWORD dwFunction, DWORD dwAddress);
  41.  
  42. void Healthbar(LPDIRECT3DDEVICE9 pDevice, float x, float y, float Health);
  43. void DrawLine(LPDIRECT3DDEVICE9 pDevice, float x, float y, float x2, float y2, float width, D3DCOLOR color);
  44. void DrawRect(IDirect3DDevice9* dev, int x, int y, int w, int h, D3DCOLOR color);
  45. void LBox(IDirect3DDevice9* Device, int x, int y, int w, int h, D3DCOLOR Outline);
  46. void MsgBoxAddy(DWORD addy);
  47. void Bypass();
  48.  
  49. bool initialize;
  50. bool bCompare(const BYTE* pData, const BYTE* bMask, const char* szMask);
  51.  
  52. int togglemultiplecolors;
  53. int togglerankcolors = 0;
  54. int toggleweaponeffect = 0;
  55. int ingame;
  56. int protect;
  57. int success;
  58.  
  59. char *GetDirectoryFile(char *filename);
  60. float Distance(D3DXVECTOR3 vPoint1, D3DXVECTOR3 vPoint2);
  61.  
  62. HRESULT GenerateTexture(IDirect3DDevice9 *pD3Ddev, IDirect3DTexture9 **ppD3Dtex, DWORD colour32);
  63. LPDIRECT3DTEXTURE9 texRed, texGreen, texBlue, texYellow, texWhite, texOrange, texBlack, texOWhite, texSTEB;
  64. MODULEINFO GetModuleInfo(char *szModule);
  65. ID3DXLine *pLine;
  66. };
  67.  
  68. extern CTools Tools;
  69. extern ofstream ofile;
  70. extern char dlldir[320];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement