21 std::queue<std::string> queue;
23 HANDLE hFind = FindFirstFileA( fileName, &ffd );
25 if ( INVALID_HANDLE_VALUE == hFind )
33 if ( ffd.dwFileAttributes & FILE_ATTRIBUTE_ARCHIVE )
35 queue.push( ffd.cFileName );
38 BOOL found = FindNextFileA( hFind, &ffd );
45 DeleteFileA( queue.front().c_str() );
47 }
while ( queue.size() > trimTo );