Creating a thread in DllMain?

You shouldn’t be doing any API calls, especially for things like creating threads or windows, from DLLMain. Raymond Chen has written about this many times; here’s one that’s particularly relevant.

Leave a Comment