I need to find a reliable way to skip the global object deinitialization that happens just after DllMain has been called with DLL_PROCESS_DETACH.
From the Microsoft Dynamic-Link Library Best Practices, we find a list of tasks that you should never perform from within DllMain, and that list does not contains ExitProcess.
May I assume it is safe to call ExitProcess in this context? And what about the other standard C function _Exit that should be used to terminate a process without completely cleaning the resources? Currently, I'm using _Exit and it seems to work properly.