Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <windows.h>
- #include <process.h>
- void DLLProject(PVOID)
- {
- while (true)
- {
- Sleep(1);
- if (GetAsyncKeyState(VK_END))
- {
- while (GetAsyncKeyState(VK_END))
- {
- Sleep(1);
- }
- MessageBoxA(GetForegroundWindow(), "Hello World!", "DarkP1xel", NULL);
- }
- }
- }
- BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved)
- {
- if (fdwReason == DLL_PROCESS_ATTACH)
- {
- _beginthread(DLLProject, NULL, NULL);
- }
- return TRUE;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement