. But how do I close the window/terminate the thread before the process gets detached from the DLL? Sending the WM_CLOSE message on DLL_PROCESS_DETACH didn't have the desired effect.
Re: How to close DLL window before process gets detached
Dll must have exported functions/classes. Define some function (or class method) which makes all necessary cleanup. If Dll client doesn't call this function when it is necessary, Dll cannot cleanup its resources properly. Anyway, in the end of the process everything is destroyed.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.