Leaked source code of windows server 2003
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.

64 lines
1.2 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name :
  4. enumdir.h
  5. Abstract:
  6. Directory enumerations object declarations. Caller instantiates a instance
  7. of this object with a root directory path. The object will return all the
  8. sibbling files as a URL.
  9. Author:
  10. Michael Cheuk (mcheuk)
  11. Project:
  12. Link Checker
  13. Revision History:
  14. --*/
  15. #ifndef _ENUMDIR_H_
  16. #define _ENUMDIR_H_
  17. #include "useropt.h"
  18. //---------------------------------------------------------------------------
  19. // Directory enumeration class
  20. //
  21. class CEnumerateDirTree
  22. {
  23. // Public funtions
  24. public:
  25. // Constructor
  26. CEnumerateDirTree(
  27. CVirtualDirInfo DirInfo // root virtual directory to start with
  28. );
  29. // Desctructor
  30. ~CEnumerateDirTree();
  31. // Get the next URL
  32. BOOL Next(
  33. CString& strURL
  34. );
  35. // Protected members
  36. protected:
  37. HANDLE m_hFind; // Win32 FindFile handle
  38. CVirtualDirInfo m_VirtualDirInfo; // current virtual directory enumerating
  39. CVirtualDirInfoList m_VirtualDirInfoList; // child directoris left to enumerate
  40. }; // class CEnumerateDirTree
  41. #endif // _ENUMDIR_H_