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.

47 lines
812 B

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1999.
  5. //
  6. // File: P S Z A R R A Y . H
  7. //
  8. // Contents: Implements the basic datatype for a collection of pointers
  9. // to strings.
  10. //
  11. // Notes:
  12. //
  13. // Author: shaunco 9 Feb 1999
  14. //
  15. //----------------------------------------------------------------------------
  16. #pragma once
  17. class CPszArray : public vector<PCWSTR>
  18. {
  19. public:
  20. VOID
  21. Clear ()
  22. {
  23. clear ();
  24. }
  25. UINT
  26. Count () const
  27. {
  28. return size();
  29. }
  30. BOOL
  31. FIsEmpty () const
  32. {
  33. return empty();
  34. }
  35. HRESULT
  36. HrAddPointer (
  37. IN PCWSTR psz);
  38. HRESULT
  39. HrReserveRoomForPointers (
  40. IN UINT cPointers);
  41. };