/UMPDC.cpp Secret
Created
March 23, 2022 21:02
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define WIN32_LEAN_AND_MEAN | |
#include <windows.h> | |
extern "C" __declspec(dllexport) | |
DWORD WINAPI MessageBoxThread(LPVOID lpParam) { | |
MessageBox(0, "Hello world!", "@Joseliyo_Jstnk!", 0); | |
return 0; | |
} | |
extern "C" __declspec(dllexport) | |
BOOL APIENTRY DllMain(HMODULE hModule, | |
DWORD ul_reason_for_call, | |
LPVOID lpReserved) { | |
switch (ul_reason_for_call) { | |
case DLL_PROCESS_ATTACH: | |
MessageBox(0, "Hello world!", "@Joseliyo_Jstnk!", 0); | |
//CreateThread(NULL, NULL, MessageBoxThread, NULL, NULL, NULL); | |
break; | |
case DLL_THREAD_ATTACH: | |
case DLL_THREAD_DETACH: | |
case DLL_PROCESS_DETACH: | |
break; | |
} | |
return TRUE; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment