Source code of Windows XP (NT5)
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.

93 lines
1.4 KiB

  1. ;***
  2. ;os2supp.inc - helper macros for OS/2, MTHREAD, and DLL support
  3. ;
  4. ; Copyright (c) 1987-2001, Microsoft Corporation. All rights reserved.
  5. ;
  6. ;Purpose:
  7. ; Support for OS/2, MTHREAD, and DLL support
  8. ;
  9. ;Revision History:
  10. ;
  11. ; 08-25-88 WAJ Added this header. Added to 386 tree.
  12. ; 09-06-94 CFW Replace MTHREAD with _MT.
  13. ;
  14. ;*******************************************************************************
  15. ifdef _MT
  16. OS2SUPP equ 1
  17. else
  18. OS2SUPP equ 0
  19. endif
  20. __MsgString equ <>
  21. ifdef _MT
  22. __MsgString catstr __MsgString, < _MT>
  23. endif
  24. ifdef SS_NEQ_DGROUP
  25. __MsgString catstr __MsgString, < SS_NEQ_DGROUP>
  26. endif
  27. ifdef DLL
  28. __MsgString catstr __MsgString, < DLL>
  29. endif
  30. __SMsgString sizestr __MsgString
  31. if __SMsgString
  32. if OS2SUPP
  33. __MsgString catstr <OS/2 Support Lib ->, __MsgString
  34. else
  35. __MsgString catstr <Support Lib ->, __MsgString
  36. endif
  37. ifndef QUIET
  38. % display __MsgString
  39. endif
  40. endif
  41. _loadds macro ;; code for loading ds with DGROUP
  42. push ds
  43. mov ax,DGROUP
  44. mov ds,ax
  45. endm
  46. _reloadds macro ;; code for resetting ds
  47. pop ds
  48. endm
  49. ifmt macro code
  50. ifdef _MT
  51. code
  52. endif
  53. endm
  54. nomt macro code
  55. ifndef _MT
  56. code
  57. endif
  58. endm
  59. ifdll macro code
  60. ifdef DLL
  61. code
  62. endif
  63. endm
  64. if_LOAD_DGROUP macro code
  65. ifdef _LOAD_DGROUP
  66. code
  67. endif
  68. endm
  69. no_LOAD_DGROUP macro code
  70. ifndef _LOAD_DGROUP
  71. code
  72. endif
  73. endm