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.

86 lines
2.7 KiB

  1. //++
  2. //
  3. // Copyright (c) 1989 Microsoft Corporation
  4. //
  5. // Module Name:
  6. //
  7. // sysstubs.asm
  8. //
  9. // Abstract:
  10. //
  11. // This module implements the system service dispatch stub procedures.
  12. //
  13. // Author:
  14. //
  15. // Shie-Lin Tzong (shielint) 6-Feb-1990
  16. //
  17. // Environment:
  18. //
  19. // User or kernel mode.
  20. //
  21. // Revision History:
  22. //
  23. //--
  24. #define TeWow32Reserved 0xc0
  25. #define ARGS0
  26. #define ARGS1 int a1
  27. #define ARGS2 ARGS1, int a2
  28. #define ARGS3 ARGS2, int a3
  29. #define ARGS4 ARGS3, int a4
  30. #define ARGS5 ARGS4, int a5
  31. #define ARGS6 ARGS5, int a6
  32. #define ARGS7 ARGS6, int a7
  33. #define ARGS8 ARGS7, int a8
  34. #define ARGS9 ARGS8, int a9
  35. #define ARGS10 ARGS9, int a10
  36. #define ARGS11 ARGS10, int a11
  37. #define ARGS12 ARGS11, int a12
  38. #define ARGS13 ARGS12, int a13
  39. #define ARGS14 ARGS13, int a14
  40. #define ARGS15 ARGS14, int a15
  41. #define ARGS16 ARGS15, int a16
  42. #define ARGS17 ARGS16, int a17
  43. #define ARGS18 ARGS17, int a18
  44. #define ARGS19 ARGS18, int a19
  45. #define STUBS_BEGIN1( t )
  46. #define STUBS_BEGIN2( t )
  47. #define STUBS_BEGIN3( t )
  48. #define STUBS_BEGIN4( t )
  49. #define STUBS_BEGIN5( t )
  50. #define STUBS_BEGIN6( t )
  51. #define STUBS_BEGIN7( t )
  52. #define STUBS_BEGIN8( t )
  53. #define STUBS_END
  54. #define SYSSTUBS_ENTRY1( ServiceNumber, Name, NumArgs )
  55. #define SYSSTUBS_ENTRY2( ServiceNumber, Name, NumArgs )
  56. #define SYSSTUBS_ENTRY3( ServiceNumber, Name, NumArgs )
  57. #define SYSSTUBS_ENTRY4( ServiceNumber, Name, NumArgs )
  58. #define SYSSTUBS_ENTRY5( ServiceNumber, Name, NumArgs )
  59. #define SYSSTUBS_ENTRY6( ServiceNumber, Name, NumArgs )
  60. #define SYSSTUBS_ENTRY7( ServiceNumber, Name, NumArgs )
  61. #define SYSSTUBS_ENTRY8( ServiceNumber, Name, NumArgs )
  62. #define USRSTUBS_ENTRY1( ServiceNumber, Name, NumArgs ) void Name(ARGS##NumArgs)
  63. #define USRSTUBS_ENTRY2( ServiceNumber, Name, NumArgs ) {
  64. #define USRSTUBS_ENTRY3( ServiceNumber, Name, NumArgs ) __asm mov eax, 1000h + ServiceNumber
  65. #define USRSTUBS_ENTRY4( ServiceNumber, Name, NumArgs ) __asm lea edx, [esp]+4
  66. #define USRSTUBS_ENTRY5( ServiceNumber, Name, NumArgs ) __asm call dword ptr fs:[TeWow32Reserved]
  67. #define USRSTUBS_ENTRY6( ServiceNumber, Name, NumArgs ) }
  68. #define USRSTUBS_ENTRY7( ServiceNumber, Name, NumArgs )
  69. #define USRSTUBS_ENTRY8( ServiceNumber, Name, NumArgs )
  70. STUBS_BEGIN1( "System Service Stub Procedures" )
  71. STUBS_BEGIN2( "System Service Stub Procedures" )
  72. STUBS_BEGIN3( "System Service Stub Procedures" )
  73. STUBS_BEGIN4( "System Service Stub Procedures" )
  74. STUBS_BEGIN5( "System Service Stub Procedures" )
  75. STUBS_BEGIN6( "System Service Stub Procedures" )
  76. STUBS_BEGIN7( "System Service Stub Procedures" )
  77. STUBS_BEGIN8( "System Service Stub Procedures" )