The program below outputs mouse coordinates anywhere on the screen every 500 msec and tries to get the cursor type.

The problem is cursor type always shows 0.

Sample output:


C:\Program...