Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@epcnt19
Last active February 23, 2019 10:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save epcnt19/3aacb09b520244ace3c18b47ce6dbb70 to your computer and use it in GitHub Desktop.
Save epcnt19/3aacb09b520244ace3c18b47ce6dbb70 to your computer and use it in GitHub Desktop.
#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