Disabled the DLL_THREAD_ATTACH and DLL_THREAD_DETACH notification calls in all DLLs.

DisableThreadLibraryCalls Function
http://msdn.microsoft.com/en-us/library/ms682579.aspx
Note: Do not call "DisableThreadLibraryCalls" in a DLL which is statically linked to the CRT
http://support.microsoft.com/kb/555563/en-us

For plugin author:
If you need to implement DllMain entry point yourself, get rid of the #include "DisableThreadLibraryCalls.h" line.
This commit is contained in:
spx
2011-01-30 09:31:41 +00:00
parent adc930275d
commit 92eafce2dc
22 changed files with 94 additions and 0 deletions

View File

@ -23,6 +23,8 @@
#include <crtdbg.h>
#include "..\..\Library\Export.h" // Rainmeter's exported functions
#include "../../Library/DisableThreadLibraryCalls.h" // contains DllMain entry point
ULONGLONG GetPerfData(PCTSTR ObjectName, PCTSTR InstanceName, PCTSTR CounterName);
struct PerfMeasure