dll and exe
- exe files are not DLLs unfortunately, they are different things. In C/C++ coding DLL files lack the main() function
- DLLs have DllMain which handles the process and thread attachment and detachment events. If you compile to an EXE you won't be able to hook into those.
DLL有DllMain,可以hook;
DLL的源代码没有main(),无法执行。