Category : OS/2 Files
Archive   : VIOREG.ZIP
Filename : VIOINIT.C

 
Output of file : VIOINIT.C contained in archive : VIOREG.ZIP
/* This is a sample program to show the use of function VIOREGISTER ().
The VIOREGISTER () call is used to register the function VIOPRTSC (), which
is defined by the user in dynamic link library.

MASK1 enables the mask for VIOPRTSC () */

#define MASK1 0x01004000
#define MASK2 0x00000000

#include "subcalls.h"

extern unsigned far pascal VIOPRTSC (unsigned);

main() {
static char string [ ] = "hello" ;

/* test is the name of dynamic link library file */

VIOREGISTER ((char far *) "test", (char far *) "_VIDEOROUTER" ,
(unsigned long) MASK1, (unsigned long) MASK2) ;
// VIOPRTSC ((unsigned) 1) ;
VIOWRTTTY ( string , sizeof( string ) , 0 ) ;
// VIODEREGISTER ( ) ;
}


  3 Responses to “Category : OS/2 Files
Archive   : VIOREG.ZIP
Filename : VIOINIT.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/