src/taesooLib/BaseLib/utility/FileEx.cpp
ULONGLONG CFileEx::GetFileSize()
{
	ULONGLONG ulSize = 0;
	LARGE_INTEGER lInt;
	
	IsOpenThrows();
    
	if( ::GetFileSizeEx( m_hFile, &lInt ) ) {
		ulSize = lInt.QuadPart;
	}else{
		ThrowErr( ::GetLastError(), FALSE );
	}

	return ulSize;
}
///////////////////////////////////////////////////////////////////////////////
//	Desc:
//		Returns the size of the file that this object is wrapping. If the
//		file is closed 0 is returned.
///////////////////////////////////////////////////////////////////////////////
Returns the size of the file that this object is wrapping. If the
file is closed 0 is returned.
Returns the size of the file that this object is wrapping . If the file is closed 0 is returned .
ULONGLONG CFileEx::GetFileSize()
{
	ULONGLONG ulSize = 0;
	LARGE_INTEGER lInt;
	IsOpenThrows();
	if( ::GetFileSizeEx( m_hFile, &lInt ) ) {
		ulSize = lInt.QuadPart;
	}else{
		ThrowErr( ::GetLastError(), FALSE );
	}
	return ulSize;
}
ULONGLONG CFileEx :: GetFileSize ( ) { ULONGLONG ulSize = 0 ; LARGE_INTEGER lInt ; IsOpenThrows ( ) ; if ( :: GetFileSizeEx ( m_hFile , & lInt ) ) { ulSize = lInt . QuadPart ; } else { ThrowErr ( :: GetLastError ( ) , FALSE ) ; } return ulSize ; }
Desc:
Returns the size of the file that this object is wrapping.
Desc : Returns the size of the file that this object is wrapping .