diff --git a/target.cpp b/target.cpp new file mode 100644 index 0000000..bee4d86 --- /dev/null +++ b/target.cpp @@ -0,0 +1,18 @@ +// target.cpp +#include + +BOOL WINAPI DllMain(HINSTANCE hinstDll, DWORD dwReason, LPVOID lpReserved) +{ + BOOL bReturnValue = TRUE; + switch(dWReason) + { + case DLL_PROCESS_ATTACH: + MessageBoxA(NULL, "Hello from Target DLL !!", "Target", MB_OK); + break; + case DLL_PROCESS_DETACH: + case DLL_THREAD_ATTACH: + case DLL_THREAD_DETACH: + break; + } + return bReturnValue; +} \ No newline at end of file