winapi - What's the difference between struct __stat64 and struct _stati64 on WIN32? -
i'm working on code needs run on every version of windows since win2000 , needs work wide file paths.
i need call variant of stat file length. file may larger 4gb.
here's relevant section 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 );
[1] http://msdn.microsoft.com/en-us/library/14h5k7ff(v=vs.71).aspx
i can't figure out difference between __stat64 structure , _stati64 structure. know want use _wstat64 or _wstati64 msdn silent on better.
any suggestions?
i'm not 100% sure, seems like:
stat: 32-bit timestamp, 32-bit filesizestat64: 64-bit timestamp, 32-bit filesizestati64: 64-bit timestamp, 64-bit filesize
so need wstati64.
this following paragraphs on msdn:
the date stamp on file can represented if later midnight, january 1, 1970, , before 19:14:07 january 18, 2038, utc unless use
_stat64or_wstat64, in case date can represented till 23:59:59, december 31, 3000, utc.
and
st_sizesize of file in bytes; 64-bit integer_stati64,_wstati64
Comments
Post a Comment