src/taesooLib/BaseLib/utility/FileEx.cpp
BOOL CFileEx::GetTimeLastAccessed( LPCTSTR lpFile, SYSTEMTIME& sys )
{
	BOOL bRet = FALSE;
	WIN32_FILE_ATTRIBUTE_DATA fd;
	ZeroMemory( &fd, sizeof( WIN32_FILE_ATTRIBUTE_DATA ) );
	if( lpFile ) {
		if( ::GetFileAttributesEx( lpFile, GetFileExInfoStandard, ( void* ) &fd ) ) {
			::FileTimeToSystemTime( &fd.ftLastAccessTime, &sys );
			bRet = TRUE;
		}
	}

	return bRet;
}
///////////////////////////////////////////////////////////////////////////////
//	Desc:
//		Returns the time this file was last accessed. 
///////////////////////////////////////////////////////////////////////////////
/*static*/
Returns the time this file was last accessed.

static
Returns the time this file was last accessed . static
BOOL CFileEx::GetTimeLastAccessed( LPCTSTR lpFile, SYSTEMTIME& sys )
{
	BOOL bRet = FALSE;
	WIN32_FILE_ATTRIBUTE_DATA fd;
	ZeroMemory( &fd, sizeof( WIN32_FILE_ATTRIBUTE_DATA ) );
	if( lpFile ) {
		if( ::GetFileAttributesEx( lpFile, GetFileExInfoStandard, ( void* ) &fd ) ) {
			::FileTimeToSystemTime( &fd.ftLastAccessTime, &sys );
			bRet = TRUE;
		}
	}
	return bRet;
}
BOOL CFileEx :: GetTimeLastAccessed ( LPCTSTR lpFile , SYSTEMTIME & sys ) { BOOL bRet = FALSE ; WIN32_FILE_ATTRIBUTE_DATA fd ; ZeroMemory ( & fd , sizeof ( WIN32_FILE_ATTRIBUTE_DATA ) ) ; if ( lpFile ) { if ( :: GetFileAttributesEx ( lpFile , GetFileExInfoStandard , ( void * ) & fd ) ) { :: FileTimeToSystemTime ( & fd . ftLastAccessTime , & sys ) ; bRet = TRUE ; } } return bRet ; }
Desc:
Returns the time this file was last accessed.
Desc : Returns the time this file was last accessed .