INT64 GetFileSize64(LPCTSTR sPathName)
{
   HANDLE   hFile;
   hFile = ::CreateFile(sPathName, 0, 0 , NULL, OPEN_EXISTING, 0, NULL);
   if(hFile==INVALID_HANDLE_VALUE) return -1;

   LARGE_INTEGER size;
   BOOL ret = ::GetFileSizeEx(hFile, &size);
   CloseHandle(hFile);

   return ret ? size.QuadPart : -1;
}
Posted by 띠깜
,