Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

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
#include

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 );
}


This post first appeared on Ask For Program, please read the originial post: here

Share the post

C Program to check if mouse support is available or not

×

Subscribe to Ask For Program

Get updates delivered right to your inbox!

Thank you for your subscription

×