home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 206.lha / Grab_Pointer / test2.c < prev    next >
C/C++ Source or Header  |  1988-12-28  |  531b  |  34 lines

  1. #include <exec/types.h>
  2. #include <exec/exec.h>
  3. #include <intuition/intuitionbase.h>
  4. #include <functions.h>
  5.  
  6. #include "pointer.c"
  7.  
  8. #define INTUITION_REV 1L
  9. #define NULL 0L
  10.  
  11. struct IntuitionBase *IntuitionBase;
  12.  
  13. main()
  14. {
  15. int i ;
  16. char *window ;
  17.  
  18. IntuitionBase = (struct IntuitionBase *)OpenLibrary("intuition.library",1L);
  19.  
  20. if( IntuitionBase == NULL )
  21.    {
  22.    printf("Can't open intuition.library !!!\n");
  23.    exit() ;
  24.    }
  25.  
  26. window = (char *)IntuitionBase->ActiveWindow ;
  27.  
  28. mypointer(window) ;
  29.  
  30. Delay(1000L) ;
  31.  
  32. ClearPointer(window) ;
  33. }
  34.