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.

191 lines
2.9 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. ntwow64.h
  5. Abstract:
  6. This module contains headers for fake kernel entrypoints(wow64 BOPS) in ntdll.
  7. Author:
  8. Michael Zoran (mzoran) 22-NOV-1998
  9. Environment:
  10. User Mode only
  11. Revision History:
  12. May 07, 2001 SamerA Added NtWow64GetNativeSystemInformation()
  13. --*/
  14. NTSYSAPI
  15. NTSTATUS
  16. NTAPI
  17. NtWow64CsrClientConnectToServer(
  18. IN PWSTR ObjectDirectory,
  19. IN ULONG ServerDllIndex,
  20. IN PVOID ConnectionInformation,
  21. IN OUT PULONG ConnectionInformationLength OPTIONAL,
  22. OUT PBOOLEAN CalledFromServer OPTIONAL
  23. );
  24. NTSYSAPI
  25. NTSTATUS
  26. NTAPI
  27. NtWow64CsrNewThread(
  28. VOID
  29. );
  30. NTSYSAPI
  31. NTSTATUS
  32. NTAPI
  33. NtWow64CsrIdentifyAlertableThread(
  34. VOID
  35. );
  36. NTSYSAPI
  37. NTSTATUS
  38. NTAPI
  39. NtWow64CsrClientCallServer(
  40. IN OUT PCSR_API_MSG m,
  41. IN OUT PCSR_CAPTURE_HEADER CaptureBuffer OPTIONAL,
  42. IN CSR_API_NUMBER ApiNumber,
  43. IN ULONG ArgLength
  44. );
  45. NTSYSAPI
  46. PCSR_CAPTURE_HEADER
  47. NTAPI
  48. NtWow64CsrAllocateCaptureBuffer(
  49. IN ULONG CountMessagePointers,
  50. IN ULONG Size
  51. );
  52. NTSYSAPI
  53. VOID
  54. NTAPI
  55. NtWow64CsrFreeCaptureBuffer(
  56. IN PCSR_CAPTURE_HEADER CaptureBuffer
  57. );
  58. NTSYSAPI
  59. ULONG
  60. NTAPI
  61. NtWow64CsrAllocateMessagePointer(
  62. IN OUT PCSR_CAPTURE_HEADER CaptureBuffer,
  63. IN ULONG Length,
  64. OUT PVOID *Pointer
  65. );
  66. NTSYSAPI
  67. VOID
  68. NTAPI
  69. NtWow64CsrCaptureMessageBuffer(
  70. IN OUT PCSR_CAPTURE_HEADER CaptureBuffer,
  71. IN PVOID Buffer OPTIONAL,
  72. IN ULONG Length,
  73. OUT PVOID *CapturedBuffer
  74. );
  75. NTSYSAPI
  76. VOID
  77. NTAPI
  78. NtWow64CsrCaptureMessageString(
  79. IN OUT PCSR_CAPTURE_HEADER CaptureBuffer,
  80. IN PCSTR String OPTIONAL,
  81. IN ULONG Length,
  82. IN ULONG MaximumLength,
  83. OUT PSTRING CapturedString
  84. );
  85. NTSYSAPI
  86. NTSTATUS
  87. NTAPI
  88. NtWow64CsrSetPriorityClass(
  89. IN HANDLE ProcessHandle,
  90. IN OUT PULONG PriorityClass
  91. );
  92. NTSYSAPI
  93. HANDLE
  94. NTAPI
  95. NtWow64CsrGetProcessId(
  96. VOID
  97. );
  98. NTSYSAPI
  99. NTSTATUS
  100. NTAPI
  101. NtDbgUiConnectToDbg( VOID );
  102. NTSTATUS
  103. NtDbgUiWaitStateChange (
  104. OUT PDBGUI_WAIT_STATE_CHANGE StateChange,
  105. IN PLARGE_INTEGER Timeout OPTIONAL
  106. );
  107. NTSYSAPI
  108. NTSTATUS
  109. NTAPI
  110. NtDbgUiContinue (
  111. IN PCLIENT_ID AppClientId,
  112. IN NTSTATUS ContinueStatus
  113. );
  114. NTSYSAPI
  115. NTSTATUS
  116. NTAPI
  117. NtDbgUiStopDebugging (
  118. IN HANDLE Process
  119. );
  120. NTSYSAPI
  121. NTSTATUS
  122. NTAPI
  123. NtDbgUiDebugActiveProcess (
  124. IN HANDLE Process
  125. );
  126. NTSYSAPI
  127. VOID
  128. NTAPI
  129. NtDbgUiRemoteBreakin (
  130. IN PVOID Context
  131. );
  132. NTSYSAPI
  133. HANDLE
  134. NTAPI
  135. NtDbgUiGetThreadDebugObject (
  136. VOID
  137. );
  138. // This is used in place of INT 2D
  139. NTSYSAPI
  140. NTSTATUS
  141. NtWow64DebuggerCall (
  142. IN ULONG ServiceClass,
  143. IN ULONG Arg1,
  144. IN ULONG Arg2,
  145. IN ULONG Arg3,
  146. IN ULONG Arg4
  147. );
  148. NTSYSAPI
  149. NTSTATUS
  150. NtWow64GetNativeSystemInformation(
  151. IN SYSTEM_INFORMATION_CLASS SystemInformationClass,
  152. OUT PVOID NativeSystemInformation,
  153. IN ULONG InformationLength,
  154. OUT PULONG ReturnLength OPTIONAL
  155. );