wpQueryRefreshFlags - Remarks

The refresh flags consist of a DIRTYBIT and a FOUNDBIT that are used to detect deleted files and new files when refreshing the contents of a folder.

For example, if you develop a subclass of wpFolder which contains objects that represent entries in a database (where the database may get updated independently from your objects), you might want to resynchronize your folder full of objects with the contents of the database. One possible technique follows: