Created
May 26, 2020 12:06
-
-
Save plowsec/e0acacac0289d0604142e8422a2c9ce4 to your computer and use it in GitHub Desktop.
Quick and dirty dll main
This file contains hidden or 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
| void main_dll(){ | |
| toto(); | |
| } | |
| BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, LPVOID reserved) | |
| { | |
| if (reason != DLL_PROCESS_ATTACH) | |
| return TRUE; | |
| CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)main_dll, NULL, 0, NULL); | |
| return TRUE; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment