Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.56 KB | None | 0 0
  1. #include <iostream>
  2. #include <windows.h>
  3.  
  4. DWORD WINAPI run(LPVOID lpP);
  5.  
  6. BOOL APIENTRY DllMain(HMODULE hModule,
  7.                        DWORD  ul_reason_for_call,
  8.                        LPVOID lpReserved)
  9. {
  10.     switch (ul_reason_for_call)
  11.     {
  12.     case DLL_PROCESS_ATTACH:
  13.         CreateThread(0, 0X1000, &run, 0, 0, NULL);
  14.     case DLL_THREAD_ATTACH:
  15.     case DLL_THREAD_DETACH:
  16.     case DLL_PROCESS_DETACH:
  17.         break;
  18.     }
  19.     return TRUE;
  20. }
  21. DWORD WINAPI run(LPVOID lpP)
  22. {
  23.     Beep(500,500);
  24.     int *health = (int*)0X1B3F3C4;
  25.     while(true)
  26.     {
  27.         *health = 0;
  28.     }
  29.     return S_OK;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement