DllMain in an exe?

后端 未结 3 582
庸人自扰
庸人自扰 2021-01-21 08:22

Is it possible to receive DllMain like notifications about thread attach/detach in stand-alone exe without using any extra dlls?

Edit: This is just a th

3条回答
  •  天涯浪人
    2021-01-21 08:43

    Your question is to get notification while the process is getting loaded and unloaded. This is more applicable for DLLs as they are getting loaded by other processes.

    For Exes, you have InitInstance and ExitInstance which you can handle equivalently!

提交回复
热议问题