On Thursday 27 February 2025 20:58:40 Vincent Torri wrote: > maybe GetFileInformationByHandle instead of stat ?
*ByHandle function is supposed to be for *f*stat. Handle represents the opened file, in the state way as C/POSIX file descriptor. Moreover once we have the opened handle, we can convert it to C file descriptor and call the fstat. Anyway, the purpose of that msvcr* library is to provide that C/POSIX API from WinAPI. If we are not going to reimplement whole C library from WinAPI functions, we do not need to call direct low level WinAPI functions, but rather high level C msvcrt functions. _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public