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.

56 lines
1.4 KiB

  1. /******************************************************************************
  2. Copyright (c) 2002 Microsoft Corporation
  3. Module Name:
  4. muisu.h
  5. Abstract:
  6. Implements helper functions for self-updating MUI stuff
  7. ******************************************************************************/
  8. #pragma once
  9. #ifndef MUIUTIL_H
  10. #define MUIUTIL_H
  11. const TCHAR MUI_SUBDIR[] = _T("mui\\fallback\\");
  12. const TCHAR MUI_HELPSUBDIR[] = _T("help\\mui\\");
  13. const TCHAR MUI_EXT[] = _T(".mui");
  14. const TCHAR MUI_WEBSUBPATH[] = _T("/mui");
  15. // selfupdate architecture flags
  16. const TCHAR IDENT_ARCH[] = _T("ARCH");
  17. const TCHAR IDENT_OS[] = _T("OS");
  18. const TCHAR IDENT_LANG[] = _T("LANG");
  19. // IU selfupdate arch keys
  20. const TCHAR IDENT_X86[] = _T("x86");
  21. const TCHAR IDENT_IA64[] = _T("ia64");
  22. typedef struct tagAU_LANG
  23. {
  24. LPTSTR szMuiName;
  25. LPTSTR szAUName;
  26. } AU_LANG;
  27. typedef struct tagAU_LANGLIST
  28. {
  29. AU_LANG **rgpaulLangs;
  30. LPCTSTR pszIdentFile;
  31. DWORD cSlots;
  32. DWORD cLangs;
  33. } AU_LANGLIST;
  34. HRESULT GetMuiLangList(AU_LANGLIST *paull,
  35. LPTSTR pszMuiDir, DWORD *pcchMuiDir,
  36. LPTSTR pszHelpMuiDir, DWORD *pcchHelpMuiDir);
  37. HRESULT CleanupMuiLangList(AU_LANGLIST *paull);
  38. BOOL MapLangIdToStringName(LANGID langid, LPCTSTR pszIdentFile,
  39. LPTSTR pszLangString, DWORD cchLangString);
  40. #endif