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.

93 lines
2.5 KiB

  1. /*
  2. * t120.h
  3. *
  4. * Abstract:
  5. * This is the interface file for the communications infrastructure of
  6. * T120.
  7. *
  8. * Note that this is a "C" language interface in order to prevent any "C++"
  9. * naming conflicts between different compiler manufacturers. Therefore,
  10. * if this file is included in a module that is being compiled with a "C++"
  11. * compiler, it is necessary to use the following syntax:
  12. *
  13. * extern "C"
  14. * {
  15. * #include "t120.h"
  16. * }
  17. *
  18. * This disables C++ name mangling on the API entry points defined within
  19. * this file.
  20. *
  21. * Author:
  22. * blp
  23. *
  24. * Caveats:
  25. * none
  26. */
  27. #ifndef _T120_
  28. #define _T120_
  29. /*
  30. * This is the GCCBoolean type used throughout MCS.
  31. */
  32. typedef int T120Boolean;
  33. /*
  34. * These macros are used to resolve far references in the Windows world.
  35. * When not operating in the Windows world, they are simply NULL.
  36. */
  37. #ifdef _WINDOWS
  38. # ifndef FAR
  39. # ifdef WIN32
  40. # define FAR
  41. # else
  42. # define FAR _far
  43. # endif
  44. # endif
  45. # ifndef CALLBACK
  46. # ifdef WIN32
  47. # define CALLBACK __stdcall
  48. # else
  49. # define CALLBACK _far _pascal
  50. # endif
  51. # endif
  52. # ifndef APIENTRY
  53. # ifdef WIN32
  54. # define APIENTRY __stdcall
  55. # else
  56. # define APIENTRY _far _pascal _export
  57. # endif
  58. # endif
  59. #else
  60. # ifndef FAR
  61. # define FAR
  62. # endif
  63. # ifndef CALLBACK
  64. # define CALLBACK
  65. # endif
  66. # ifndef APIENTRY
  67. # define APIENTRY
  68. # endif
  69. #endif
  70. #define FALSE 0
  71. #define TRUE 1
  72. /*
  73. * These macros are used to pack 2 16-bit values into a 32-bit variable, and
  74. * get them out again.
  75. */
  76. #ifndef LOWUSHORT
  77. #define LOWUSHORT(ul) ((unsigned short) (ul))
  78. #endif
  79. #ifndef HIGHUSHORT
  80. #define HIGHUSHORT(ul) ((unsigned short) ((unsigned long) (ul) >> 16))
  81. #endif
  82. #include "mcscommn.h"
  83. #include "tgcc.h" // tiny gcc
  84. #endif