C Program to Hide Mouse Pointer : Dos Programming


C Program to Hide Mouse Pointer :

Explanation Of C Program :

Firstly let us study some important points about interrupts handeling.

will check whether the mouse driver exists or not.

input output Comment
ax=0x0000 ax=0x0000 or 0xFFFF
bx=number of buttons
0x0000 installed
0xFFFF not installed

Int86() is a C function that allows to call interrupts in the program. prototype in dos.h

Int 33,0×01 : Show Mouse cursor

input output Comment
ax=0x0001 none

Int 33,0×02 : Hide Mouse Cursor

input output Comment

In and out register must be type of REGS. REGS is a built in UNION declaration in C. It is defined in the dos.h header file

Syntax :