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.

109 lines
2.0 KiB

  1. #include <nt.h>
  2. #include <ntrtl.h>
  3. #include <nturtl.h>
  4. #include <windows.h>
  5. #include <vdm.h>
  6. #include <stdio.h>
  7. //Tim Nov 92 #include <xt.h>
  8. #include <nt_mon.h> //Tim Nov 92, so it builds...
  9. ULONG cpu_calc_q_ev_inst_for_time(ULONG time){
  10. return(time);
  11. }
  12. ULONG q_ev_count;
  13. VOID cpu_q_ev_set_count(ULONG time){
  14. q_ev_count = time;
  15. }
  16. ULONG cpu_q_ev_get_count() {
  17. return(q_ev_count);
  18. }
  19. char szYodaWarn[]="NtVdm : Using Yoda on an x86 may be hazardous to your systems' health\n";
  20. unsigned char *GDP;
  21. int getCPL(){
  22. OutputDebugString(szYodaWarn);
  23. return(0);
  24. }
  25. int getEM(){
  26. OutputDebugString(szYodaWarn);
  27. return(0);
  28. }
  29. int getGDT_BASE(){
  30. OutputDebugString(szYodaWarn);
  31. return(0);
  32. }
  33. int getGDT_LIMIT(){
  34. OutputDebugString(szYodaWarn);
  35. return(0);
  36. }
  37. int getIDT_BASE(){
  38. OutputDebugString(szYodaWarn);
  39. return(0);
  40. }
  41. int getIDT_LIMIT(){
  42. OutputDebugString(szYodaWarn);
  43. return(0);
  44. }
  45. int getIOPL(){
  46. OutputDebugString(szYodaWarn);
  47. return(0);
  48. }
  49. int getLDT_BASE(){
  50. OutputDebugString(szYodaWarn);
  51. return(0);
  52. }
  53. int getLDT_LIMIT(){
  54. OutputDebugString(szYodaWarn);
  55. return(0);
  56. }
  57. int getLDT_SELECTOR(){
  58. OutputDebugString(szYodaWarn);
  59. return(0);
  60. }
  61. int getMP(){
  62. OutputDebugString(szYodaWarn);
  63. return(0);
  64. }
  65. int getNT(){
  66. OutputDebugString(szYodaWarn);
  67. return(0);
  68. }
  69. int getTR_BASE(){
  70. OutputDebugString(szYodaWarn);
  71. return(0);
  72. }
  73. int getTR_LIMIT(){
  74. OutputDebugString(szYodaWarn);
  75. return(0);
  76. }
  77. int getTR_SELECTOR(){
  78. OutputDebugString(szYodaWarn);
  79. return(0);
  80. }
  81. int getTS(){
  82. OutputDebugString(szYodaWarn);
  83. return(0);
  84. }
  85. void setPE(int dummy1){
  86. OutputDebugString(szYodaWarn);
  87. }
  88. boolean selector_outside_table(word foo, double_word *bar){
  89. UNREFERENCED_PARAMETER(foo);
  90. UNREFERENCED_PARAMETER(bar);
  91. OutputDebugString("NtVdm : Using Yoda on an x86 may be hazardous to your systems' health\n");
  92. return(0);
  93. }
  94. VOID
  95. EnterIdle(){
  96. }
  97. VOID
  98. LeaveIdle(){
  99. }