use hack from SendFile for determining Fd for handle. Use when requesting window size