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.

43 lines
753 B

  1. /*++
  2. Copyright (C) 1996-1999 Microsoft Corporation
  3. Module Name:
  4. strtable.h
  5. Abstract:
  6. <abstract>
  7. --*/
  8. class CStringTable
  9. {
  10. protected:
  11. UINT m_idsMin;
  12. UINT m_idsMax;
  13. USHORT m_cStrings;
  14. LPWSTR *m_ppszTable;
  15. public:
  16. CStringTable(void);
  17. ~CStringTable(void);
  18. BOOL Init( UINT idsMin, UINT idsMax );
  19. //Function to resolve an ID into a string pointer.
  20. LPWSTR operator []( const UINT );
  21. };
  22. typedef CStringTable *PCStringTable;
  23. #ifdef CCHSTRINGMAX
  24. #undef CCHSTRINGMAX
  25. #endif
  26. #define CCHSTRINGMAX 256
  27. // Global instance of string table
  28. extern CStringTable StringTable;