-
-
Save jstnk9/034d6add18a2692e451b254472a823f9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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