home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 19 / AACD19.BIN / AACD / Programming / LIProgram / InterceptTest.c < prev    next >
Encoding:
C/C++ Source or Header  |  2001-02-21  |  1.2 KB  |  52 lines

  1. /****h *InterceptTest/InterceptTest.c [1.0] ****************************
  2. **
  3. ** NAME
  4. **    InterceptTest
  5. **
  6. ** DESCRIPTION
  7. **    See if LibraryInterceptor is working correctly.
  8. ************************************************************************
  9. */
  10.  
  11. #include <stdio.h>
  12.  
  13. #include <exec/execbase.h>
  14. #include <exec/types.h>
  15.  
  16. #include <AmigaDOSErrs.h>
  17.  
  18. #include <intuition/intuition.h>
  19. #include <intuition/intuitionbase.h>
  20.  
  21. #include <graphics/gfxbase.h>
  22.  
  23. #include <clib/exec_protos.h>
  24.  
  25. #include "CPGM:GlobalObjects/CommonFuncs.h"
  26.  
  27. IMPORT struct Library   *SysBase;
  28.  
  29. struct IntuitionBase *IntuitionBase;
  30. struct GfxBase       *GfxBase;
  31. struct Library       *GadToolsBase;
  32.  
  33. PUBLIC int main( int argc, char **argv )
  34. {
  35.    fprintf( stderr, "SysBase       == 0x%08LX\n", SysBase );
  36.  
  37.    if (OpenLibs() < 0)
  38.       {
  39.       fprintf( stderr, "OpenLibs() failed in %s\n", argv[0] );
  40.       return( RETURN_FAIL );
  41.       }
  42.  
  43.    fprintf( stderr, "IntuitionBase == 0x%08LX\n", IntuitionBase );
  44.    fprintf( stderr, "GfxBase       == 0x%08LX\n", GfxBase       );
  45.    fprintf( stderr, "GadToolsBase  == 0x%08LX\n", GadToolsBase  );
  46.  
  47.    CloseLibs();
  48.  
  49.    return( RETURN_OK );
  50. }
  51.  
  52. /* -------------- END of InterceptTest.c file! ----------------- */