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.

60 lines
2.0 KiB

  1. #ifndef _PROJDATA_H_
  2. #define _PROJDATA_H_
  3. #define NAMELENBUFSIZE 32
  4. typedef struct _tagLangData
  5. {
  6. struct _tagLangData * pNext;
  7. WORD wPriLang;
  8. WORD wSubLang;
  9. TCHAR szLangName[ NAMELENBUFSIZE];
  10. } LANGDATA, * PLANGDATA;
  11. int MyAtoi( CHAR *pStr);
  12. int GetMasterProjectData(
  13. CHAR * pszMasterFile, //... Master Project file name
  14. CHAR * pszSrc, //... Resource source file name or NULL
  15. CHAR * pszMtk, //... Master token file name or NULL
  16. BOOL fLanguageGiven);
  17. int PutMasterProjectData(
  18. CHAR *pszMasterFile); //... Master Project File name
  19. int GetProjectData(
  20. CHAR *pszPrj, //... Project file name
  21. CHAR *pszMpj, //... Master Project file name or NULL
  22. CHAR *pszTok, //... Project token file name or NULL
  23. BOOL fCodePageGiven,
  24. BOOL fLanguageGiven);
  25. int PutProjectData(
  26. CHAR *pszPrj); //... Project file name
  27. WORD GetCopyright(
  28. CHAR *pszProg, //... Program name
  29. CHAR *pszOutBuf, //... Buffer for results
  30. WORD wBufLen); //... Length of pszOutBuf
  31. WORD GetInternalName(
  32. CHAR *pszProg, //... Program name
  33. CHAR *pszOutBuf, //... Buffer for results
  34. WORD wBufLen); //... Length of pszOutBuf
  35. //DWORD GetLanguageID( HWND hDlg, PMSTRDATA pMaster, PPROJDATA pProject);
  36. //DWORD SetLanguageID( HWND hDlg, PMSTRDATA pMaster, PPROJDATA pProject);
  37. LPTSTR GetLangName( WORD wPriLangID, WORD wSubLangID);
  38. PLANGDATA GetLangList( void);
  39. BOOL GetLangIDs( LPTSTR pszName, PWORD pwPri, PWORD pwSub);
  40. LONG FillLangNameBox( HWND hDlg, int nControl);
  41. void FreeLangList( void);
  42. void FillListAndSetLang(
  43. HWND hDlg,
  44. WORD wLangNameList, //... IDD_MSTR_LANG_NAME or IDD_PROJ_LANG_NAME
  45. WORD *pLangID, //... Ptr to gMstr.wLanguageID or gProj.wLanguageID
  46. BOOL *pfSelected); //... Did we select a language here? (Can be NULL)
  47. #endif // _PROJDATA_H_