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.

112 lines
4.0 KiB

  1. ;/*
  2. ; * Microsoft Confidential
  3. ; * Copyright (C) Microsoft Corporation 1991
  4. ; * All Rights Reserved.
  5. ; */
  6. ;
  7. ;******************************************************************************
  8. ; Message Macro Definitions
  9. ;******************************************************************************
  10. ;
  11. EXTRN Display_Interface:near
  12. ;-----------------------------------------------------------------------------
  13. MESSAGE macro Message_Name ; ;AN000;
  14. ;
  15. mov dx,offset Message_Name ; ;AN000;
  16. call Display_Interface ; ;AN000;
  17. ;
  18. endm ; ;AN000;
  19. ;
  20. ;*****************************************************************************
  21. ; General Macro's
  22. ;*****************************************************************************
  23. ;
  24. Procedure macro Proc_Name
  25. Public Proc_Name
  26. Proc_Name proc
  27. endm
  28. ;-----------------------------------------------------------------------------
  29. DOS_Call macro Function
  30. mov ah,Function
  31. int 21h
  32. endm
  33. ;-----------------------------------------------------------------------------
  34. Parse_Message macro ;AN000;
  35. push ds ;AN000;
  36. mov dx,SEG parse_ptr ;AN000;
  37. mov ds,dx ;AN000;
  38. ASSUME DS:DATA ;AN000;
  39. ASSUME ES:DATA ;AN000;
  40. mov word ptr Parse_Error_Msg,ax ;AN000;
  41. mov dx,offset Parse_Error_Msg ; ;AN000;
  42. call Display_Interface ; ;AN000;
  43. pop ds
  44. endm ; ;AN000;
  45. ;-----------------------------------------------------------------------------
  46. Extend_Message macro ; ;AN001;
  47. ;
  48. push ds ;AN001;
  49. mov dx,SEG parse_ptr ;AN001;
  50. mov ds,dx ;AN001;
  51. ASSUME DS:DATA ;AN001;
  52. ASSUME ES:DATA ;AN001;
  53. mov word ptr Extend_Error_Msg,ax ; ;AN001;
  54. mov dx,offset Extend_Error_Msg ; ;AN001;
  55. call Display_Interface ; ;AN001;
  56. pop ds ;AN001;
  57. endm ; ;AN001;
  58. ;-----------------------------------------------------------------------------
  59. ; macros to declare messages
  60. addr macro sym,name
  61. public name
  62. ifidn <name>,<>
  63. dw offset sym
  64. else
  65. public name
  66. name dw offset sym
  67. endif
  68. endm
  69. defmsg macro sym, name, str1, str2, str3, str4, str5
  70. sym db str1
  71. ifnb <str2>
  72. db str2
  73. endif
  74. ifnb <str3>
  75. db str3
  76. endif
  77. ifnb <str4>
  78. db str4
  79. endif
  80. ifnb <str5>
  81. db str5
  82. endif
  83. ifnb <name>
  84. addr sym, name
  85. endif
  86. endm
  87.