在所有的DLL都响应了DLL_PROCESS_ATTACH通知后,系统让进程的主线程执行EXE的C运行时启动代码,而后调用EXE文件的WinMain函数。如果有一个DLL的DLLMain函数的返回值为FALSE,说明DLL的初始化没有成功,系统就会终结整个进程,去掉所有文件映象,之后显示一个对话框告诉用户进程不能启动。再说明一下显示载入DLL时都发生了什么:...
是宏、、、输出函数OutPutDebugString的define
From the kernel’s point of view, the answer is a simple Yes. If a DLL’s entry point returnsFALSEto theDLL_PROCESS_ATTACHnotification, it will receive aDLL_PROCESS_DETACHnotification. However, most C and C++ programs do not use the raw DLL entry point. Instead, they use the C runtime...
Versions: OS and Version: Windows 10 x64 VS Code Version: 1.26.1 C/C++ Extension Version: 0.18.1 MinGW with gcc: gcc (x86_64-posix-sjlj-rev0, Built by MinGW-W64 project) 7.3.0 GDB: GNU gdb (GDB) 8.1 c#: .NET standard 2.0 I'd like to debu...