Description
Currently CH uses several functions to handle setting final attributes, file times and size (when no buffering). That seems to be sub-optimal - research and try to use SetFileInformationByHandle() in one or two calls to finalize file (set the final size, attributes and file times).