home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 January / PCWorld_2000-01_cd.bin / Software / Servis / Devc / _SETUP.5 / Group19 / dll.c next >
C/C++ Source or Header  |  1998-04-22  |  511b  |  34 lines

  1.  
  2. #include <windows.h>
  3.  
  4. BOOL WINAPI
  5. DllMain (HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
  6. {
  7.     switch (dwReason)
  8.     {
  9.         case DLL_PROCESS_ATTACH:
  10.             printf ("DLL Attached.\n");
  11.             break;
  12.  
  13.         case DLL_PROCESS_DETACH:
  14.             printf ("DLL Detached.\n");
  15.             break;
  16.  
  17.         case DLL_THREAD_ATTACH:
  18.             printf ("DLL Thread Attached.\n");
  19.             break;
  20.  
  21.         case DLL_THREAD_DETACH:
  22.             printf ("DLL Thread Detached.\n");
  23.             break;
  24.     }
  25.     return TRUE;
  26. }
  27.  
  28. void
  29. Test ()
  30. {
  31.     printf ("Test Function called!\n");
  32. }
  33.  
  34.