home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / VIOREG.ZIP / VIOINIT.C < prev    next >
Text File  |  1989-05-21  |  765b  |  25 lines

  1. /* This is a sample program to show the use of function VIOREGISTER ().
  2. The VIOREGISTER () call is used to register the function VIOPRTSC (), which
  3. is defined by the user in dynamic link library.
  4.  
  5. MASK1 enables the mask for VIOPRTSC ()      */
  6.  
  7. #define   MASK1   0x01004000
  8. #define   MASK2   0x00000000
  9.  
  10. #include "subcalls.h"
  11.  
  12. extern unsigned far pascal VIOPRTSC (unsigned);
  13.  
  14. main() {
  15.  static char string [ ] = "hello" ;
  16.  
  17. /*  test is the name of dynamic link library file   */
  18.  
  19.         VIOREGISTER ((char far *) "test", (char far *) "_VIDEOROUTER" ,
  20.               (unsigned long) MASK1, (unsigned long) MASK2) ;
  21.         // VIOPRTSC ((unsigned) 1) ;
  22.         VIOWRTTTY ( string , sizeof( string ) , 0 ) ;
  23.         // VIODEREGISTER ( ) ;
  24.     }
  25.