title: How can I get the files modified in a directory in a particular period of time using c++?
body: <p>Hi 
  In a sample App I develop, I would like to retrieve the details of files modified in a particular time period.</p>
  
  <p>Or simply... I have a time with me (say june 6th 2011 10:00 AM) and would like to get the list of files in a directory(say C:\MyFolder) which is modified after that partiicular time.</p>
  
  <p>I have tried a method..</p>
  
  <pre><code>   CFileFind finder;
     szFile = _T("C:\\MyFolder\\*.*");
  BOOL bFound = finder.FindFile( szFile );
  CTime fileTime;
  CTime fileCreateTime;
  while ( bFound )
  {
            bFound = finder.FindNextFile();
      finder.GetLastWriteTime(fileTime);
      finder.GetCreationTime(fileCreateTime);
      szFile = finder.GetFilePath();
      if((startTime &lt; fileTime) || (startTime &lt; fileCreateTime))
              {
  
                   ......
  </code></pre>
  
  <p>Is there any other windows apis available for this or is there any better method than this..?</p>
  
  <p>any one please reply...</p>
  
  <p>Thanks in advance....</p>