Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <windows.h>
- DWORD WINAPI run(LPVOID lpP);
- BOOL APIENTRY DllMain(HMODULE hModule,
- DWORD ul_reason_for_call,
- LPVOID lpReserved)
- {
- switch (ul_reason_for_call)
- {
- case DLL_PROCESS_ATTACH:
- CreateThread(0, 0X1000, &run, 0, 0, NULL);
- case DLL_THREAD_ATTACH:
- case DLL_THREAD_DETACH:
- case DLL_PROCESS_DETACH:
- break;
- }
- return TRUE;
- }
- DWORD WINAPI run(LPVOID lpP)
- {
- Beep(500,500);
- int *health = (int*)0X1B3F3C4;
- while(true)
- {
- *health = 0;
- }
- return S_OK;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement