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.

163 lines
4.6 KiB

  1. page 60,132 ;
  2. ;/*
  3. ; * Microsoft Confidential
  4. ; * Copyright (C) Microsoft Corporation 1991
  5. ; * All Rights Reserved.
  6. ; */
  7. .xlist
  8. include version.inc
  9. include DOSSYM.INC
  10. include EDLSTDSW.INC
  11. .list
  12. ;======================= START OF SPECIFICATIONS =========================
  13. ;
  14. ; MODULE NAME: EDLEQU.SAL
  15. ;
  16. ; DESCRIPTIVE NAME: EQUATES FOR EDLIN
  17. ;
  18. ; FUNCTION: PROVIDES EQUATES FOR EDLIN. IT ALSO PROVIDES THE MACRO
  19. ; VAL_YN.
  20. ;
  21. ; ENTRY POINT: NA
  22. ;
  23. ; INPUT: NA
  24. ;
  25. ; EXIT NORMAL: NA
  26. ;
  27. ; EXIT ERROR: NA
  28. ;
  29. ; INTERNAL REFERENCES:
  30. ;
  31. ; ROUTINE: VAL_YN - VALIDATES Y/N RESPONSES FROM THE KEYBOARD
  32. ;
  33. ; EXTERNAL REFERENCES:
  34. ;
  35. ; ROUTINE: NA
  36. ;
  37. ; NOTES: THIS MODULE IS TO BE PREPPED BY SALUT WITH THE "PR" OPTIONS.
  38. ; LINK EDLIN+EDLCMD1+EDLCMD2+EDLMES+EDLPARSE
  39. ;
  40. ; REVISION HISTORY:
  41. ;
  42. ; AN000 VERSION 4.00 - REVISIONS MADE RELATE TO THE FOLLOWING:
  43. ;
  44. ; - IMPLEMENT SYSPARSE
  45. ; - IMPLEMENT MESSAGE RETRIEVER
  46. ; - IMPLEMENT DBCS ENABLING
  47. ; - ENHANCED VIDEO SUPPORT
  48. ; - EXTENDED OPENS
  49. ; - SCROLLING ERROR
  50. ;
  51. ; COPYRIGHT: "MS DOS EDLIN UTILITY"
  52. ; "VERSION 4.00 (C) COPYRIGHT 1988 Microsoft"
  53. ;
  54. ;======================= END OF SPECIFICATIONS ===========================
  55. COMAND_LINE_LENGTH EQU 128
  56. QUOTE_CHAR EQU 16H ;Quote character = ^V
  57. CR EQU 13
  58. STKSIZ EQU 200h
  59. STACK equ stksiz
  60. asian_blk equ DB_SP_LO ;an000;asian blank 2nd. byte
  61. dbcs_lead_byte equ DB_SP_HI ;an000;asian blank lead byte
  62. nul equ 00h ;an000;nul character
  63. Access_Denied equ 0005h ;an000;extended error code for access denied
  64. ;======== Y/N validation equates =========================================
  65. yn_chk equ 23h ;an000;check for Y/N response
  66. max_len equ 01h ;an000;max. len. for Y/N char.
  67. yes equ 01h ;an000;boolean yes value
  68. no equ 00h ;an000;boolean no value
  69. ;======== text display values for initialization =========================
  70. video_get equ 0fh ;an000;int 10 get video attributes
  71. video_set equ 00h ;an000;int 10 set video attributes
  72. video_text equ 03h ;an000;80 X 25 color monitor
  73. ;======== code page values for functions =================================
  74. get_set_cp equ 66h ;an000;get or set code page
  75. get_cp equ 01h ;an000;get active code page
  76. set_cp equ 02h ;an000;set active code page
  77. ;======== screen length & width defaults =================================
  78. std_out equ 01h ;an000;console output
  79. display_attr equ 03h ;an000;display for IOCTL
  80. Get_Display equ 7fh ;an000;Get display for IOCTL
  81. ifndef JAPAN
  82. Def_Disp_Len equ 25 ;an000;default display length
  83. else ; if JAPAN
  84. Def_Disp_Len equ 24
  85. endif
  86. Def_Disp_Width equ 80 ;an000;default display width
  87. ;======== extended open equates ==========================================
  88. rw equ 0082h ;an000;read/write
  89. ; compatibility
  90. ; noinherit
  91. ; int 24h handler
  92. ; no commit
  93. ext_read equ 0080h ;an000;read
  94. ; compatibility
  95. ; noinherit
  96. ; int 24h handler
  97. ; no commit
  98. rw_flag equ 0101h ;an000;fail if file not exist
  99. ; open if file exists
  100. ; don't validate code page
  101. creat_flag equ 0110h ;an000;create if file does not exist
  102. ; fail if file exists
  103. ; don't validate code page
  104. open_flag equ 0101h ;an000;fail if file not exist
  105. ; open if file exists
  106. ; don't validate code page
  107. creat_open_flag equ 0112h ;an000;create if file does not exist
  108. ; open/replace if file exists
  109. ; don't validate code page
  110. attr equ 00h ;an000;attributes set to 0
  111. ;======== parse value equates ============================================
  112. nrm_parse_exit equ 0ffffh ;an000;normal exit from sysparse
  113. too_many equ 01h ;an000;too many parms entered
  114. op_missing equ 02h ;an000;required operand missing
  115. sw_missing equ 03h ;an000;not a valid switch
  116. ;======== Strucs =========================================================
  117. Display_Buffer_Struc Struc ;an000;dms;
  118. Display_Info_Level db ? ;an000;dms;
  119. Display_Reserved db ? ;an000;dms;
  120. Display_Buffer_Size dw ? ;an000;dms;
  121. Display_Flags dw ? ;an000;dms;
  122. Display_Mode db ? ;an000;dms;
  123. ; TEXT=01
  124. ; APA =02
  125. Display_Mode_Reserved db ? ;an000;dms;
  126. Display_Colors dw ? ;an000;dms;# of colors
  127. Display_Width_Pixels dw ? ;an000;dms;# of pixels in width
  128. Display_Length_Pixels dw ? ;an000;dms;# of pixels in len.
  129. Display_Width_Char dw ? ;an000;dms;# of chars in width
  130. Display_Length_Char dw ? ;an000;dms;# of chars in length
  131. Display_Buffer_Struc ends ;an000;dms;
  132.