Advertisement
Guest User

Untitled

a guest
Jul 20th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. #include <Windows.h>
  2.  
  3. DWORD WINAPI InitializationZ(LPVOID)
  4. {
  5. while (true)
  6. {
  7. if (GetAsyncKeyState(VK_ADD))
  8. {
  9. *(float*)0x009386DC += 10.0f;
  10. while (GetAsyncKeyState(VK_ADD)) { Sleep(100); }
  11. }
  12. Sleep(10);
  13. }
  14. return 0;
  15. }
  16.  
  17. BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
  18. {
  19. switch (ul_reason_for_call)
  20. {
  21. case DLL_PROCESS_ATTACH:
  22. CreateThread(0, 0, InitializationZ, 0, 0, 0);
  23. break;
  24. }
  25. return TRUE;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement