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.

58 lines
1.8 KiB

  1. // FILE: TTuneP.h
  2. //
  3. // Structures and functions internal to the library that are used to access the
  4. // Tsunami tuning information.
  5. /************************************************************************************************\
  6. * Stuff to access binary unigram file.
  7. \************************************************************************************************/
  8. // The format for the Tsunami tune file is:
  9. // Header:
  10. // DWORD File type indicator.
  11. // DWORD Size of header.
  12. // BYTE Lowest version this code that can read this file.
  13. // BYTE Version of this code that wrote this file.
  14. // wchar_t[4] Locale ID (3 characters plus null).
  15. // WORD Reserved for future use.
  16. // DWORD * 3 Reserved for future use.
  17. // Tunning values:
  18. // TTUNE_COSTS Tuning value structure.
  19. //
  20. //
  21. // Constants
  22. //
  23. // Magic key the identifies the Local Runtime files
  24. #define TTUNE_FILE_TYPE 0xABC123EF
  25. // Version information for file.
  26. #define TTUNE_MIN_FILE_VERSION 0 // First version of code that can read this file
  27. #define TTUNE_CUR_FILE_VERSION 0 // Current version of code.
  28. #define TTUNE_OLD_FILE_VERSION 0 // Oldest file version this code can read.
  29. //
  30. // Structures and types
  31. //
  32. // Structure to hold file header.
  33. typedef struct tagTTUNE_HEADER {
  34. DWORD fileType; // This should always be set to TTUNE_FILE_TYPE.
  35. DWORD headerSize; // Size of the header.
  36. BYTE minFileVer; // Earliest version of code that can read this file
  37. BYTE curFileVer; // Current version of code that wrote the file.
  38. wchar_t locale[4]; // Locale ID string.
  39. DWORD dwTimeStamp; // A creation time stamp
  40. BYTE reserved1;
  41. DWORD reserved2[3];
  42. } TTUNE_HEADER;
  43. // Load runtime localization information from an image already loaded into
  44. // memory.
  45. BOOL TTuneLoadPointer(TTUNE_INFO *pTTuneInfo, void *pData, int iSize);
  46. #ifdef __cplusplus
  47. }
  48. #endif