CFileFind::GetLastWriteTime
virtual BOOL GetLastWriteTime(FILETIME* pFileTime**) const;**
virtual BOOL GetLastWriteTime(CTime& refTime**) const;**
Return Value
Nonzero if successful; 0 if unsuccessful. GetLastWriteTime returns 0 only if FindNextFile has never been called on this CFileFind object.
Parameters
pFileTime
A pointer to a structure containing the time the file was last written to.
refTime
A reference to a CTime object.
Remarks
Call this member function to get the last time the file was changed.
You must call FindNextFile at least once before calling GetLastWriteTime.
Note Not all file systems use the same semantics to implement the time stamp returned by this function. This function may return the same value returned by other time stamp functions if the underlying file system or server does not support keeping the time attribute. See the structure for information about time formats. On some operation systems, the returned time is in the time zone local to the machine were the file is located. See the Win32 API for more information.
Example
See the example for CFileFind::GetLength.