Write a c program which restricts the movement of pointer?

Answer:

//restrict the x and y coordinate

#include

#include

void main()

{

union REGS i,o;

//show mouse pointer

i.x.ax=1;

int86(0x33,&i,&o);

//x coordinate restriction

i.x.ax=7;

i.x.cx=20;

i.x.dx=300;

int86(0x33,&i,&o);

//y coordinate restriction

i.x.ax=8;

i.x.cx=50;

i.x.dx=250;

int86(0x33,&i,&o);

getch();

}

 

1 comment:

Anonymous said...

You may even be able to|be capable of|have the ability to} appreciate the adapted 바카라 사이트 controls and graphics within the game slots, is ready to} let you enjoy the high quality of the work carried out even from a cell gadget. Just deposits of $45 or extra will meet all requirements to get the sign-up bonus. Betting stipulations are 30xs the bonus cash and the first deposit sum.