初始化时,GDI+(非 .NET)创建一个后台线程,可以选择性地抑制它以调用一些 Hook 函数。然而,MSDN 并没有说明这个线程实际上做了什么。 Google 似乎也不知道。
它有什么用?
最佳答案
This thread提供一般解释:
GDI+ spins up a background thread as soon as you start manipulating images. It's name doesn't provide much of a hint what it does, "BackgroundThreadProc()". This is pretty common in Microsoft libraries. Some sort of internal management thread, probably has something to do with memory management or threading. It creates a hidden window, that's classic too.
Nothing to worry about, everything is normal. Including the exit code.
FWIW,this thread建议抑制后台线程:
If you do not suppress the background GDI+ thread, DDE commands can be prematurely issued to the application before its main window has been created. The DDE commands issued by the shell can be prematurely aborted, resulting in error messages.
关于windows - GDI+后台线程有什么作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2736939/