Leaked source code of windows server 2003
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.

50 lines
1.2 KiB

  1. typedef struct {
  2. BYTE bMSB;
  3. BYTE bLSB;
  4. } MWORD;
  5. typedef MWORD *LPMWORD;
  6. #define MWORD2INT(mw) ((mw).bMSB * 256 + (mw).bLSB)
  7. typedef struct {
  8. MWORD mwidPlatform;
  9. MWORD mwidEncoding;
  10. MWORD mwidLang;
  11. MWORD mwidName;
  12. MWORD mwcbString;
  13. MWORD mwoffString;
  14. } TTNAMEREC;
  15. typedef TTNAMEREC *PTTNAMEREC;
  16. typedef struct {
  17. MWORD mwiFmtSel;
  18. MWORD mwcNameRec;
  19. MWORD mwoffStrings;
  20. TTNAMEREC anrNames[1];
  21. } TTNAMETBL;
  22. typedef TTNAMETBL *PTTNAMETBL;
  23. #define TT_TBL_NAME 0x656D616E // 'name'
  24. #define TTID_PLATFORM_MAC 1
  25. #define TTID_PLATFORM_MS 3
  26. #define TTID_MS_UNDEFINED 0
  27. #define TTID_MS_UNICODE 1
  28. #define TTID_MS_SHIFTJIS 2
  29. #define TTID_MS_GB 3
  30. #define TTID_MS_BIG5 4
  31. #define TTID_MS_WANSUNG 5
  32. #define TTID_NAME_COPYRIGHT 0
  33. #define TTID_NAME_FONTFAMILY 1
  34. #define TTID_NAME_FONTSUBFAM 2
  35. #define TTID_NAME_UNIQFONTID 3
  36. #define TTID_NAME_FULLFONTNM 4
  37. #define TTID_NAME_VERSIONSTR 5
  38. #define TTID_NAME_PSFONTNAME 6
  39. #define TTID_NAME_TRADEMARK 7