Get notifications of new threads / deleted threads under Windows

☆樱花仙子☆ 提交于 2020-01-11 12:13:21

问题


When you create a DLL you can get notifications about new threads / exiting threads in the DllMain function (DLL_THREAD_ATTACH/DLL_THREAD_DETACH).

Is there a way to get these or equivalent notifications from Windows within an (non managed) Executable?


回答1:


Yes - include a small stub DLL in your process that simply monitors DLL_THREAD_ATTACH and DLL_THREAD_DETACH in the way you want.



来源:https://stackoverflow.com/questions/3628148/get-notifications-of-new-threads-deleted-threads-under-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!