fileRead functions: handle INVALID_FUNCTION on Windows and map it to error.IsDir

INVALID_FUNCTION may be possible in other scenarios as well, but it is verifiably returned when the handle refers to a directory.
b4831403c9Ryan Liptak committed on 1/11/2026, 10:08:18 AMparentd080988
2 files changedLine totals unavailable