Advertisement
xXx2o1o

Untitled

Jul 10th, 2016
4,936
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.47 KB | None | 1 0
  1. #include <windows.h>
  2. #include <process.h>
  3.  
  4. void DLLProject(PVOID)
  5. {
  6.     while (true)
  7.     {
  8.         Sleep(1);
  9.         if (GetAsyncKeyState(VK_END))
  10.         {
  11.             while (GetAsyncKeyState(VK_END))
  12.             {
  13.                 Sleep(1);
  14.             }
  15.             MessageBoxA(GetForegroundWindow(), "Hello World!", "DarkP1xel", NULL);
  16.         }
  17.     }
  18. }
  19.  
  20. BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved)
  21. {
  22.     if (fdwReason == DLL_PROCESS_ATTACH)
  23.     {
  24.         _beginthread(DLLProject, NULL, NULL);
  25.     }
  26.     return TRUE;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement