home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / sdktools / windiff / gutils.c < prev    next >
C/C++ Source or Header  |  1997-10-05  |  1KB  |  43 lines

  1.  
  2. /******************************************************************************\
  3. *       This is a part of the Microsoft Source Code Samples. 
  4. *       Copyright (C) 1993-1997 Microsoft Corporation.
  5. *       All rights reserved. 
  6. *       This source code is only intended as a supplement to 
  7. *       Microsoft Development Tools and/or WinHelp documentation.
  8. *       See these sources for detailed information regarding the 
  9. *       Microsoft samples programs.
  10. \******************************************************************************/
  11.  
  12. /****************************** Module Header *******************************
  13. * Module Name: GUTILS.C
  14. *
  15. * Entry point for GUTILS.DLL
  16. *
  17. * Functions:
  18. *
  19. * DllMain()
  20. *
  21. ****************************************************************************/
  22.  
  23. #include <windows.h>
  24.  
  25. #include "gutils.h"
  26. #include "gutilsrc.h"
  27.  
  28. /* dll global data */
  29. HANDLE hLibInst;
  30. extern void gtab_init(void);
  31. extern BOOL StatusInit(HANDLE);
  32.  
  33. BOOL APIENTRY DllMain(HANDLE hInstance, DWORD dwReason, LPVOID reserved)
  34. {
  35.         if (dwReason == DLL_PROCESS_ATTACH) {
  36.                 hLibInst = hInstance;
  37.                 gtab_init();
  38.                 StatusInit(hLibInst);
  39.         }
  40.         return(TRUE);
  41. }
  42.  
  43.