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.

43 lines
976 B

  1. #ifndef __A51_INDEX__H_
  2. #define __A51_INDEX__H_
  3. #include "btr.h"
  4. class CBtrIndex
  5. {
  6. DWORD m_dwPrefixLength;
  7. CBTree bt;
  8. CBTreeFile ps;
  9. BOOL CopyStringToWIN32_FIND_DATA(
  10. LPSTR pszSource,
  11. LPWSTR wszDest
  12. );
  13. public:
  14. CBtrIndex();
  15. ~CBtrIndex();
  16. long Shutdown(DWORD dwShutDownFlags);
  17. long Initialize(DWORD dwPrefixLength, LPCWSTR wszRepositoryDir,
  18. CPageSource* pSource );
  19. long Create(LPCWSTR wszFileName);
  20. long Delete(LPCWSTR wszFileName);
  21. long FindFirst(LPCWSTR wszPrefix, WIN32_FIND_DATAW* pfd, void** ppHandle);
  22. long FindNext(void* pHandle, WIN32_FIND_DATAW* pfd);
  23. long FindClose(void* pHandle);
  24. long IndexEnumerationBegin(const wchar_t *wszSearchPrefix, void **ppHandle);
  25. long IndexEnumerationEnd(void *pHandle);
  26. long IndexEnumerationNext(void *pHandle, CFileName &wszFileName);
  27. long InvalidateCache();
  28. long FlushCaches();
  29. CBTree& GetTree() {return bt;}
  30. };
  31. #endif