Return the file handle for the file descriptor fd. Raises OSError if fd is not recognized.
msvcrt/get_osfhandle
get_osfhandle