static bool GetFileSizeEx(LPCSTR Path, LARGE_INTEGER& Size)
{
HANDLE hFile = CreateFile(Path, GENERIC_READ, FILE_SHARE_READ,
NULL, OPEN_EXISTING, 0, NULL);
if (hFile == INVALID_HANDLE_VALUE)
return(FALSE);
Size.LowPart = GetFileSize(hFile, (PULONG)&Size.HighPart);
CloseHandle(hFile);
return(Size.LowPart != 0xFFFFFFFF || GetLastError() != NO_ERROR);
}
Saturday, October 28, 2006
How to get a huge file size
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment