Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.0 KiB

  1. /*******************************************************************************
  2. *
  3. * (C) COPYRIGHT MICROSOFT CORPORATION, 1998, 1999, 2000
  4. *
  5. * TITLE: FINDFILE.H
  6. *
  7. * VERSION: 1.0
  8. *
  9. * AUTHOR: ShaunIv
  10. *
  11. * DATE: 1/13/1999
  12. *
  13. * DESCRIPTION: Directory recursing class. A derived class should be created,
  14. * which overrides FoundFile, or you can pass in a callback function
  15. * that is called for each file and directory found. A cancel callback
  16. * is also provided.
  17. *
  18. *******************************************************************************/
  19. #ifndef __FINDFILE_H_INCLUDED
  20. #define __FINDFILE_H_INCLUDED
  21. #include <windows.h>
  22. #include "simstr.h"
  23. typedef bool (*FindFilesCallback)( bool bIsFile, LPCTSTR pszFilename, const WIN32_FIND_DATA *pFindData, PVOID pvParam );
  24. bool RecursiveFindFiles( CSimpleString strDirectory, const CSimpleString &strMask, FindFilesCallback pfnFindFilesCallback, PVOID pvParam, int nStackLevel=0, const int cnMaxDepth=10 );
  25. #endif // __FINDFILE_H_INCLUDED