用 API GetCursorPos(),參考:
#include?<windows.h>
void?main()
{
POINT?pt;
GetCursorPos(&pt);?
printf("%ld?%ld\n",pt.x,pt.y);
}