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.

124 lines
6.4 KiB

  1. ; Kernel OLD routines, NOPs, but exist in KERNEL.DEF, so I can't kill them
  2. .xlist
  3. include kernel.inc
  4. include tdb.inc
  5. include newexe.inc
  6. .list
  7. sBegin CODE
  8. assumes cs,CODE
  9. ;-----------------------------------------------------------------------;
  10. ; LimitEmsPages ;
  11. ; ;
  12. ; Limits the total number of EMS pages a task may have. ;
  13. ; ;
  14. ; Arguments: ;
  15. ; Maximum amount of memory in Kbytes that this task wants. ;
  16. ; ;
  17. ; Returns: ;
  18. ; ;
  19. ; Error Returns: ;
  20. ; ;
  21. ; Registers Preserved: ;
  22. ; ;
  23. ; Registers Destroyed: ;
  24. ; ;
  25. ; Calls: ;
  26. ; ;
  27. ; History: ;
  28. ; ;
  29. ; Fri Jun 26, 1987 01:53:15a -by- David N. Weise [davidw] ;
  30. ; Wrote it. ;
  31. ;-----------------------------------------------------------------------;
  32. cProc LimitEmsPages,<PUBLIC,FAR>
  33. ; parmD amount
  34. cBegin nogen
  35. xor ax,ax
  36. cwd
  37. ret 4
  38. cEnd nogen
  39. ;-----------------------------------------------------------------------;
  40. ; KbdReset ;
  41. ; ;
  42. ; Keyboard driver calls here when Ctl+Alt+Del is happening. ;
  43. ; ;
  44. ; Arguments: ;
  45. ; ;
  46. ; Returns: ;
  47. ; ;
  48. ; Error Returns: ;
  49. ; ;
  50. ; Registers Preserved: ;
  51. ; ;
  52. ; Registers Destroyed: ;
  53. ; ;
  54. ; Calls: ;
  55. ; ;
  56. ; History: ;
  57. ; ;
  58. ;-----------------------------------------------------------------------;
  59. cProc KbdRst,<PUBLIC,FAR>
  60. cBegin nogen
  61. ret
  62. cEnd nogen
  63. ;-----------------------------------------------------------------------;
  64. ; GetCurPID ;
  65. ; A utility routine for EMS functions needed from user routines ;
  66. ; ;
  67. ; function = ;
  68. ; 0 - return the current PID in ax ;
  69. ; 1 - copy the TDB_EEMSSave area into a new block and return ;
  70. ; the new block's handle in ax ;
  71. ; 2 - do not free the banks of the current app ;
  72. ; 3 - free the given PID's banks ;
  73. ; 4 - do an HFree on the given handle ;
  74. ; 5 - get expanded memory sizes ;
  75. ; 6 - ;
  76. ; 7 - do an EMS_save ;
  77. ; 8 - do an EMS_restore ;
  78. ; ;
  79. ; ;
  80. ; Arguments: ;
  81. ; None ;
  82. ; ;
  83. ; Returns: ;
  84. ; see above ;
  85. ; ;
  86. ; Error Returns: ;
  87. ; ;
  88. ; Registers Preserved: ;
  89. ; ;
  90. ; Registers Destroyed: ;
  91. ; ax,bx,cx,di,si,ds,es ;
  92. ; ;
  93. ; Calls: ;
  94. ; ;
  95. ; History: ;
  96. ; ;
  97. ; Fri Jul 17, 1987 11:02:23a -by- Rick N. Zucker [rickz] ;
  98. ; Wrote it. ;
  99. ;-----------------------------------------------------------------------;
  100. cProc GetCurPID,<PUBLIC,FAR>,<di,si>
  101. parmW function
  102. parmW gcpArg
  103. cBegin
  104. xor ax,ax
  105. xor dx,dx
  106. cEnd
  107. sEnd CODE
  108. end