Platform SDK: Files and I/O |
The GetFileSizeEx function retrieves the size of a specified file.
BOOL GetFileSizeEx( HANDLE hFile, // handle to file PLARGE_INTEGER lpFileSize // file size );
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Unsupported.
Header: Declared in Winbase.h; include Windows.h.
Library: Use Kernel32.lib.