I'm working on some code that needs to run on every version of windows since WIN2000 and also needs to work with wide file paths.
I need to call some variant of stat
to get the file length. The file may be larger than 4GB.
Here's the relevant section from the MSDN Visual Studio .NET 2003[1] documentation:
int _stat( const char *path, struct _stat *buffer ); int _stat64( const char *path, struct __stat64 *buffer ); int _stati64( const char *path, struct _stati64 *buffer ); int _wstat( const wchar_t *path, struct _stat *buffer ); int _wstat64( const wchar_t *path, struct __stat64 *buffer ); int _wstati64( const wchar_t *path, struct _stati64 *buffer );
I can't figure out the difference between the __stat64
structure and the _stati64
structure. I know that I want to use _wstat64
or _wstati64
but MSDN is silent on which is better.
Any suggestions?