1 
2 #include <windef.h>
3 #include <winbase.h>
4 
5 DWORD WINAPI GetVersion()
6 {
7     return 2;
8 }
9 
10 BOOL
11 WINAPI
12 DllMain(HINSTANCE hinstDll,
13         DWORD dwReason,
14         LPVOID reserved)
15 {
16     switch (dwReason)
17     {
18         case DLL_PROCESS_ATTACH:
19             DisableThreadLibraryCalls(hinstDll);
20             break;
21 
22         case DLL_PROCESS_DETACH:
23             break;
24     }
25 
26    return TRUE;
27 }
28