home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 3 / Meeting_Pearls_III.iso / Pearls / disk / Devs+Handler / proc / source / openwindow.c next >
C/C++ Source or Header  |  1995-06-24  |  365b  |  24 lines

  1. /*
  2.  
  3. This small prg is necessary to debug the proc-fs...
  4. It has to be started once, before you mount the proc-fs!
  5.  
  6. */
  7.  
  8. main()
  9. {
  10.     BPTR fh, fh2;
  11.  
  12.     fh2 = *((BPTR *) 0);
  13.     printf( "%x\n", fh2 );
  14.  
  15.     if( fh = Open( "con:0/11/640/89/Handler-Window", MODE_NEWFILE ) )
  16.     {
  17.         printf( "open %x\n", fh );
  18.  
  19.         *((BPTR *) 0) = fh;
  20.         fh2 = *((BPTR *) 0);
  21.         printf( "%x\n", fh2 );
  22.     }
  23. }
  24.