C Program to check if mouse support is available or not



Below is the program to check if mouse support is available or not!

#include <dos.h>
#include <conio.h>

int initializemouse();

union REGS i, o;

main()
{
   int ismousesupported;

   ismousesupported = initializemouse();

   if ( status == 0 )
      printf("Mouse is not supported.\n");
   else
      printf("Mouse is supported.\n");

   getch();
   return 0;
}

int initializemouse()
{
   i.x.ax = 0;
   int86(0X33, &i, &o);
   return ( o.x.ax );
}

Post a Comment

0 Comments