Download this file
29 lines (23 with data), 642 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26 | /*
Copyright (C) 2010, Heikki Salo
All rights reserved.
Distributed under the BSD license:
http://www.opensource.org/licenses/bsd-license.php
*/
#include "stdafx.h"
BOOL APIENTRY DllMain(HMODULE hModule, DWORD reasonForCall, void* lpReserved)
{
switch (reasonForCall) {
case DLL_PROCESS_ATTACH:
#if defined(_DLL)
//Only when using .dll CRT.
DisableThreadLibraryCalls(hModule);
break;
#endif
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
|
×
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.