Skip to content

Instantly share code, notes, and snippets.

@livz

livz/DllStatic.c Secret

Created July 21, 2017 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save livz/30de9908a0f690f3f27173562efac463 to your computer and use it in GitHub Desktop.
Save livz/30de9908a0f690f3f27173562efac463 to your computer and use it in GitHub Desktop.
Static linking
/*
* Compile with cl:
* cl /EHsc /nologo DllStatic.c user32.lib
*
*/
#include <Windows.h>
int main(int argc, char **argv)
{
MessageBox(NULL, "A process is loading the DLL", "Title", MB_OK);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment