SECFileSystem::GetFileAccessTime

BOOLSECFileSystem::GetFileAccessTime(const CString&FileName, CTime&time)

Returns the time and date the file was last accessed.

Defined in: filesys.cpp

Return Value

Nonzero if successful; 0 if an error occurred.

Parameters

FileName

The name of the file.

time

The time that the file was last access.

Example

CTime AccessTime;
BOOL bRetVal = fs.GetFileAccessTime("c:\\test.txt", AccessTime);

See Also

SECFileSystem  GetFileStatus  GetFileCreateTime  GetFileModifyTime  GetFileSize