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.

65 lines
1.7 KiB

  1. //=======================================================================
  2. //
  3. // Copyright (c) 1999 Microsoft Corporation. All Rights Reserved.
  4. //
  5. // File: locstr.h
  6. //
  7. // Purpose: Localized strings and templates
  8. //
  9. //=======================================================================
  10. #ifndef _LOCSTR_H
  11. #define _LOCSTR_H
  12. #include <windows.h>
  13. #include <objbase.h>
  14. #include "debug.h"
  15. //
  16. // string types
  17. //
  18. #define LOC_STRINGS 0 // localized strings
  19. #define TEMPLATE_STRINGS 1 // template strings
  20. //
  21. // NOTE: Do not change these defines. They are positional
  22. //
  23. // localized strings
  24. #define IDS_PROG_DOWNLOADCAP 0 // "Download progress:"
  25. #define IDS_PROG_TIMELEFTCAP 1 // "Download time remaining:"
  26. #define IDS_PROG_INSTALLCAP 2 // "Install progress:"
  27. #define IDS_PROG_CANCEL 3 // "Cancel"
  28. #define IDS_PROG_BYTES 4 // "%d KB/%d KB"
  29. #define IDS_PROG_TIME_SEC 5 // "%d sec"
  30. #define IDS_PROG_TIME_MIN 6 // "%d min"
  31. #define IDS_PROG_TIME_HRMIN 7 // "%d hr %d min"
  32. #define IDS_APP_TITLE 8 // "Microsoft Windows Update"
  33. #define IDS_REBOOT1 9 // "You must restart Windows so that installation can finish."
  34. #define IDS_REBOOT2 10 // "Do you want to restart now?"
  35. #define LOCSTR_COUNT 11
  36. // template strings
  37. #define IDS_TEMPLATE_ITEM 0 // item template
  38. #define IDS_TEMPLATE_SEC 1 // section template
  39. #define IDS_TEMPLATE_SUBSEC 2 // sub section template
  40. #define IDS_TEMPLATE_SUBSUBSEC 3 // subsub section template
  41. #define TEMPLATESTR_COUNT 4
  42. HRESULT SetStringsFromSafeArray(VARIANT* vStringsArr, int iStringType);
  43. void SetLocStr(int iNum, LPCTSTR pszStr);
  44. LPCTSTR GetLocStr(int iNum);
  45. void SetTemplateStr(int iNum, LPCTSTR pszStr);
  46. LPCTSTR GetTemplateStr(int iNum);
  47. #endif // _LOCSTR_H