Is the handle you obtain from MonitorFromWindow correct; do you provide
the correct window handle to it?