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.

109 lines
3.2 KiB

  1. ;
  2. ;Equates for COUNTRY INFORMATION.
  3. SetCountryInfo EQU 1 ;country info
  4. SetUcase EQU 2 ;uppercase table
  5. SetLcase EQU 3 ;lowercase table (Reserved)
  6. SetUcaseFile EQU 4 ;uppercase file spec table
  7. SetFileList EQU 5 ;valid file character list
  8. SetCollate EQU 6 ;collating sequence
  9. SetDBCS EQU 7 ;double byte character set
  10. SetALL EQU -1 ;all the entries
  11. ;DOS country and code page information table structure.
  12. ;Internally, DOS gives a pointer to this table.
  13. ;IBMBIO, MODE and NLSFUNC modules communicate with DOS through
  14. ;this structure.
  15. DOS_country_cdpg_info struc
  16. ccInfo_reserved db 8 dup (?) ;reserved for internal use
  17. ccPath_CountrySys db 64 dup (0);path and filename for country info
  18. ccSysCodePage dw 0 ;system code page id
  19. ccNumber_of_entries dw 6 ; 6 entries
  20. ccSetUcase db SetUcase
  21. ccUcase_ptr dd ? ;pointer to Ucase table
  22. ccSetUcaseFile db SetUcaseFile
  23. ccFileUcase_ptr dd ? ;pointer to File Ucase table
  24. ccSetFileList db SetFileList
  25. ccFileChar_ptr dd ? ;pointer to File char list table
  26. ccSetCollate db SetCollate
  27. ccCollate_ptr dd ? ;pointer to collate table
  28. ccSetDBCS db SetDBCS
  29. ccDBCS_ptr dd ? ;pointer to DBCS table
  30. ccSetCountryInfo db SetCountryInfo
  31. ccCountryInfoLen dw ? ;length of country info
  32. ccDosCountry dw ? ;active country code id
  33. ccDosCodePage dw ? ;active code page id
  34. ccDFormat dw ? ;date format
  35. ccCurSymbol db " ",0;5 byte of (currency symbol+0)
  36. cc1000Sep db " ",0 ;2 byte of (1000 sep. + 0)
  37. ccDecSep db " ",0 ;2 byte of (Decimal sep. + 0)
  38. ccDateSep db " ",0 ;2 byte of (date sep. + 0)
  39. ccTimeSep db " ",0 ;2 byte of (time sep. + 0)
  40. ccCFormat db ? ;currency format flags
  41. ccCSigDigits db ? ;# of digits in currency
  42. ccTFormat db ? ;time format
  43. ccMono_Ptr dd ? ;monocase routine entry point
  44. ccListSep db " ",0 ;data list separator
  45. ccReserved_area dw 5 dup(?);reserved
  46. DOS_country_cdpg_info ends
  47. ;Ucase table
  48. CC_UCASE_TAB struc
  49. ccUcase_leng dw 128
  50. ccUcase_data db 128 dup (?)
  51. CC_UCASE_TAB ends
  52. ;File Ucase table
  53. CC_FILE_UCASE_TAB struc
  54. ccFileucase_leng dw 128
  55. ccFileucase_data db 128 dup (?)
  56. CC_FILE_UCASE_TAB ends
  57. ;File char list
  58. CC_FILE_CHAR_TAB struc
  59. ccFilechar_leng dw ?
  60. ccFilechar_data db 46 dup (?)
  61. CC_FILE_CHAR_TAB ends
  62. ;collate table
  63. CC_COLLATE_TAB struc
  64. ccCollate_leng dw 256
  65. ccCollate_data db 256 dup (?)
  66. CC_COLLATE_TAB ends
  67. ;DBCS table - for DOS 4.00
  68. CC_DBCS_TAB struc
  69. ccDBCS_leng dw 6
  70. ccDBCS_data db 6 dup (?)
  71. CC_DBCS_TAB ends
  72. ; 2/12/KK
  73. ; Define subfunctions of ECS_call ( 63H ) 2/12/KK
  74. ; 2/12/KK
  75. GetLeadBTBL EQU 0 ; 2/12/KK
  76. SetInterimMode EQU 1 ; 2/12/KK
  77. GetInterimMode EQU 2 ; 2/12/KK
  78. ; 2/12/KK
  79. NonInterimMode EQU 0 ; 2/12/KK
  80. InterimMode EQU 1 ; 2/12/KK
  81. OLD_COUNTRY_SIZE equ (size DOS_country_cdpg_info - ccDFormat - 10)
  82. NEW_COUNTRY_SIZE equ (size DOS_country_cdpg_info - ccDosCountry)
  83. ;CAPITALIZATION equates
  84. CAP_ONE_CHAR equ 20H
  85. CAP_STRING equ 21H
  86. CAP_ASCIIZ equ 22H
  87. CHECK_YES_NO equ 23H
  88. UPPER_TABLE equ 80H
  89. ;NLS_YES equ 59H
  90. ;NLS_yes2 equ 79H
  91. ;NLS_NO equ 4EH
  92. ;NLS_no2 equ 6EH