You are here

C program to check if mouse support is available or not

/* Program to check if mouse driver is loaded or not */

C programming code

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

int initmouse();

union REGS i, o;

   int status;

   status = initmouse();

   if (status == 0)
      printf("Mouse support not available.\n");
      printf("Mouse support available.\n");

   return 0;

int initmouse()
{ = 0;
   int86(0X33, &i, &o);
   return (;

Share this