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.

99 lines
3.6 KiB

  1. ;/*
  2. ; * Microsoft Confidential
  3. ; * Copyright (C) Microsoft Corporation 1991
  4. ; * All Rights Reserved.
  5. ; */
  6. BADDOS equ 1
  7. ALLINS equ 2
  8. FNF equ 3
  9. FLAG1 equ LEFT_ALIGN+CHAR_FIELD_ASCIIZ
  10. ;*****************************************************************************
  11. ;******************************************************************************
  12. ; VALUES FOR THE MSG_DESC CONTROL BLOCK
  13. ONE_SUBS EQU 1 ;ONE VARIABLE FIELD IN MESSAGE
  14. TWO_SUBS EQU 2 ;TWO VARIABLE FIELDS IN MESSAGE
  15. THREE_SUBS EQU 3 ;THREE VARIABLE FIELDS IN MESSAGE
  16. CLASS_1 EQU EXT_ERR_CLASS ;CLASS 1 (DOS EXTENDED ERRORS)
  17. CLASS_2 EQU PARSE_ERR_CLASS ;CLASS 2 (PARSE ERRORS)
  18. CLASS_A EQU UTILITY_MSG_CLASS ;CLASS A TYPE MESSAGE
  19. ;THIS MESSAGE DESCRIPTOR CONTROL BLOCK IS GENERATED, ONE PER MESSAGE,
  20. ;TO DEFINE THE SEVERAL PARAMETERS THAT ARE EXPECTED TO BE PASSED IN
  21. ;CERTAIN REGISTERS WHEN THE SYSDISPMSG FUNCTION IS TO BE INVOKED.
  22. ;MSG_DESC STRUC
  23. ;MSG_NUM DW 0 ;MESSAGE NUMBER (TO AX)
  24. ;MSG_HAND DW 0 ;HANDLE OF OUTPUT DEVICE (TO BX)
  25. ;MSG_SUBLIST Dd 0 ;POINTER TO SUBLIST (TO SI)
  26. ;MSG_COUNT DW 0 ;SUBSTITUTION COUNT (TO CX)
  27. ;MSG_CLASS DB 0 ;MESSAGE CLASS (IN HIGH BYTE, TO DH)
  28. ; ; LOW BYTE HAS 0 (FUNCTION "NO INPUT", TO DL)
  29. ;MSG_DESC ENDS
  30. ; VALUES FOR THE SUBLIST CONTROL BLOCK
  31. PC_ID_0 EQU 0 ;ID OF " - " TRAILER TO MESSAGE
  32. PC_ID_1 EQU 1 ;ID OF PERCENT VARIABLE FIELD
  33. PC_ID_2 EQU 2 ;ID OF PERCENT VARIABLE FIELD
  34. PC_ID_3 EQU 3 ;ID OF PERCENT VARIABLE FIELD
  35. MAX_0 EQU 0 ;MAXIMUM WIDTH OF STRING FIELD (0=NO LIMIT)
  36. MIN_1 EQU 1 ;MINIMUM WIDTH OF STRING FIELD
  37. ID_0 EQU 0
  38. ;Message PARM LIST Structure
  39. PARMLIST1 LABEL BYTE ;PARM LIST
  40. ;(File not found - 'PATH_SPEC')
  41. DB 11 ;PARMLIST size
  42. DB 0 ;reserved
  43. DD PATH_SPEC
  44. DB id_0 ;; n of %n
  45. DB FLAG1 ;; data type
  46. DB max_0 ;;max width
  47. DB min_1 ;;min width
  48. DB PAD_CHAR ;;char defined to be space
  49. PARMLIST2 LABEL BYTE ;PARM LIST
  50. ;(NLSFUNC already installed)
  51. DB 11 ;PARMLIST size
  52. DB 0 ;reserved
  53. DD UTILITY ;; ptr to data
  54. DB 1 ;; n of %n
  55. DB FLAG1 ;; data type
  56. DB 0 ;;max width
  57. DB 1 ;;min width
  58. DB PAD_CHAR ;;char defined
  59. PARMLIST3 LABEL BYTE ;PARM LIST
  60. ;(Invalid parameter 'PATH_SPEC')
  61. DB 11 ;PARMLIST size
  62. DB 0 ;reserved
  63. DD PATH_SPEC ;; ptr to data
  64. DB id_0 ;; n of %n
  65. DB FLAG1 ;; data type
  66. DB 0 ;;max width
  67. DB 1 ;;min width
  68. DB PAD_CHAR ;;char defined
  69. ; THE NEXT GROUP ARE ALL CLASS "1" MESSAGES
  70. ; PUBLIC MSGNUM_EXTERR
  71. ;MSGNUeM_EXTERR MSG_DESC <FNF,STDERR,,,CLASS_1> ;ALL EXTENDED DOS ERRORS
  72. ;File not found - %0
  73. ; THE NEXT GROUP ARE ALL CLASS "2" MESSAGES
  74. ; PUBLIC MSGNUM_PARSE ;SO PARSE DRIVER CAN FIND IT
  75. ;MSGNUM_PARSE MSG_DESC <,STDERR,,,CLASS_2> ;ALL PARSING ERRORS BUT INVALID
  76. ;SYNTAX
  77. ;ERROR NUMBER WILL NEED TO BE FILLED IN
  78. ; THE NEXT GROUP ARE ALL CLASS "A" MESSAGES
  79. ; THESE ARE THE "CANNED" MESSAGES ALWAYS PRESENT
  80. ; PUBLIC MSGNUM_VER
  81. ;MSGNUM_VER MSG_DESC <1,STDERR> ;"Incorrect DOS Version"
  82. ; PUBLIC MSGNUM_INST
  83. ;MSGNUM_INST MSG_DESC <ALLINS,STDERR> ;"%1 - already installed"
  84. ;end of MSGHAN.INC