Add code for manipulating window file handle