Skip to content

Instantly share code, notes, and snippets.

@epcnt19 epcnt19/dllmain.cpp

Last active Feb 23, 2019
Embed
What would you like to do?
#include "stdafx.h"
#include "Windows.h"
BOOL APIENTRY DllMain( HMODULE hModule,DWORD ul_reason_for_call,LPVOID lpReserved){
switch (ul_reason_for_call){
case DLL_PROCESS_ATTACH:
MessageBox(NULL,"helloworld", "helloworld", 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
You can’t perform that action at this time.