Subversion Repositories Aucun

Rev

Rev 138 | Rev 160 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
131 ixe013 1
//$Id: build_stats.cpp 154 2009-09-16 01:27:37Z ixe013 $
108 ixe013 2
#include "build_stats.h"
3
#include <windows.h>
128 ixe013 4
#include "global.h"
108 ixe013 5
 
129 ixe013 6
HINSTANCE hAucunDll;
7
 
108 ixe013 8
void OutputBuildStats()
9
{
127 ixe013 10
   OutputDebugString(L"Aucun, build timestamp : ");
109 ixe013 11
   OutputDebugStringA(__TIMESTAMP__);
12
   OutputDebugStringA("\n");
116 ixe013 13
   OutputDebugStringA("http://www.paralint.com/projects/aucun/\n");
108 ixe013 14
}
15
 
129 ixe013 16
BOOLEAN WINAPI DllMain(HINSTANCE hDll, DWORD nReason, LPVOID Reserved)
108 ixe013 17
{
109 ixe013 18
   BOOLEAN bSuccess = TRUE;
108 ixe013 19
 
109 ixe013 20
   switch (nReason)
21
   {
22
      case DLL_PROCESS_ATTACH:
23
         //  For optimization.
129 ixe013 24
         DisableThreadLibraryCalls(hDll);
25
 
109 ixe013 26
         OutputBuildStats();
129 ixe013 27
         hAucunDll = hDll;  
109 ixe013 28
         break;
108 ixe013 29
 
109 ixe013 30
      case DLL_PROCESS_DETACH:
31
         break;
32
   }
108 ixe013 33
 
109 ixe013 34
   return TRUE;
108 ixe013 35
}
36
//  end DllMain
37