-
-
Save livz/30de9908a0f690f3f27173562efac463 to your computer and use it in GitHub Desktop.
Static linking
This file contains 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
/* | |
* 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