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.

38 lines
892 B

  1. /*==========================================================================
  2. *
  3. * Copyright (C) 2000 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: strcache.h
  6. * Content: Class for caching strings
  7. *@@BEGIN_MSINTERNAL
  8. * History:
  9. * Date By Reason
  10. * ==== == ======
  11. * 02/04/2000 rmt Created
  12. * 02/21/2000 rmt Updated to make core Unicode and remove ANSI calls
  13. *@@END_MSINTERNAL
  14. *
  15. ***************************************************************************/
  16. #ifndef __STRCACHE_H
  17. #define __STRCACHE_H
  18. class CStringCache
  19. {
  20. public:
  21. CStringCache();
  22. ~CStringCache();
  23. HRESULT AddString( const WCHAR *pszString, WCHAR * *ppszSlot );
  24. protected:
  25. HRESULT GetString( const WCHAR *pszString, WCHAR * *ppszSlot );
  26. HRESULT GrowCache( DWORD dwNewSize );
  27. WCHAR ** m_ppszStringCache;
  28. DWORD m_dwNumElements;
  29. DWORD m_dwNumSlots;
  30. };
  31. #endif