简体   繁体   English

C ++ MFC命名线程,以便Procmon可以看到它们

[英]C++ MFC Naming threads so Procmon can see them

Is it possible in MFC to give threads string names, so that other apps such as procmon, will dump out a more useful message, instead of just ThreadID #### exited, etc. 是否可以在MFC中为线程提供字符串名称,以便其他应用程序(例如procmon)将转出更有用的消息,而不只是退出ThreadID ####等。

Also I'm using VC6 at the moment. 另外,我现在正在使用VC6。

Thanks 谢谢

Yes, you can by raising a special type of exception. 是的,您可以通过引发特殊类型的异常。 Illustrated here . 图示在这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM