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.

207 lines
3.1 KiB

  1. /*++ BUILD Version: 0001 // Increment this if a change has global effects
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. Module Name:
  4. ntcsrdll.h
  5. Abstract:
  6. This module defines the public interfaces of the Client portion of
  7. the Client-Server Runtime (Csr) Subsystem.
  8. Author:
  9. Steve Wood (stevewo) 09-Oct-1990
  10. Revision History:
  11. --*/
  12. #ifndef _NTCSRDLLAPI_
  13. #define _NTCSRDLLAPI_
  14. #if _MSC_VER > 1000
  15. #pragma once
  16. #endif
  17. #include "ntcsrmsg.h"
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21. NTSYSAPI
  22. NTSTATUS
  23. NTAPI
  24. CsrClientConnectToServer(
  25. IN PWSTR ObjectDirectory,
  26. IN ULONG ServertDllIndex,
  27. IN PVOID ConnectionInformation,
  28. IN OUT PULONG ConnectionInformationLength OPTIONAL,
  29. OUT PBOOLEAN CalledFromServer OPTIONAL
  30. );
  31. NTSYSAPI
  32. NTSTATUS
  33. NTAPI
  34. CsrClientCallServer(
  35. IN OUT PCSR_API_MSG m,
  36. IN OUT PCSR_CAPTURE_HEADER CaptureBuffer OPTIONAL,
  37. IN CSR_API_NUMBER ApiNumber,
  38. IN ULONG ArgLength
  39. );
  40. NTSYSAPI
  41. PCSR_CAPTURE_HEADER
  42. NTAPI
  43. CsrAllocateCaptureBuffer(
  44. IN ULONG CountMessagePointers,
  45. IN ULONG Size
  46. );
  47. NTSYSAPI
  48. VOID
  49. NTAPI
  50. CsrFreeCaptureBuffer(
  51. IN PCSR_CAPTURE_HEADER CaptureBuffer
  52. );
  53. NTSYSAPI
  54. ULONG
  55. NTAPI
  56. CsrAllocateMessagePointer(
  57. IN OUT PCSR_CAPTURE_HEADER CaptureBuffer,
  58. IN ULONG Length,
  59. OUT PVOID *Pointer
  60. );
  61. NTSYSAPI
  62. VOID
  63. NTAPI
  64. CsrCaptureMessageBuffer(
  65. IN OUT PCSR_CAPTURE_HEADER CaptureBuffer,
  66. IN PVOID Buffer OPTIONAL,
  67. IN ULONG Length,
  68. OUT PVOID *CapturedBuffer
  69. );
  70. NTSYSAPI
  71. VOID
  72. NTAPI
  73. CsrCaptureMessageString(
  74. IN OUT PCSR_CAPTURE_HEADER CaptureBuffer,
  75. IN PCSTR String,
  76. IN ULONG Length,
  77. IN ULONG MaximumLength,
  78. OUT PSTRING CapturedString
  79. );
  80. NTSYSAPI
  81. VOID
  82. NTAPI
  83. CsrCaptureMessageUnicodeStringInPlace(
  84. IN OUT PCSR_CAPTURE_HEADER CaptureBuffer,
  85. IN OUT PUNICODE_STRING String
  86. );
  87. NTSYSAPI
  88. NTSTATUS
  89. NTAPI
  90. CsrCaptureMessageMultiUnicodeStringsInPlace(
  91. IN OUT PCSR_CAPTURE_HEADER* InOutCaptureBuffer,
  92. IN ULONG NumberOfStringsToCapture,
  93. IN const PUNICODE_STRING* StringsToCapture
  94. );
  95. NTSYSAPI
  96. PLARGE_INTEGER
  97. NTAPI
  98. CsrCaptureTimeout(
  99. IN ULONG Milliseconds,
  100. OUT PLARGE_INTEGER Timeout
  101. );
  102. NTSYSAPI
  103. VOID
  104. NTAPI
  105. CsrProbeForWrite(
  106. IN PVOID Address,
  107. IN ULONG Length,
  108. IN ULONG Alignment
  109. );
  110. NTSYSAPI
  111. VOID
  112. NTAPI
  113. CsrProbeForRead(
  114. IN PVOID Address,
  115. IN ULONG Length,
  116. IN ULONG Alignment
  117. );
  118. NTSYSAPI
  119. NTSTATUS
  120. NTAPI
  121. CsrNewThread(
  122. VOID
  123. );
  124. NTSYSAPI
  125. NTSTATUS
  126. NTAPI
  127. CsrIdentifyAlertableThread(
  128. VOID
  129. );
  130. NTSYSAPI
  131. NTSTATUS
  132. NTAPI
  133. CsrSetPriorityClass(
  134. IN HANDLE ProcessHandle,
  135. IN OUT PULONG PriorityClass
  136. );
  137. NTSYSAPI
  138. NTSTATUS
  139. NTAPI
  140. CsrStartProfile(
  141. VOID
  142. );
  143. NTSYSAPI
  144. NTSTATUS
  145. NTAPI
  146. CsrStopProfile(
  147. VOID
  148. );
  149. NTSYSAPI
  150. NTSTATUS
  151. NTAPI
  152. CsrDumpProfile(
  153. VOID
  154. );
  155. NTSYSAPI
  156. NTSTATUS
  157. NTAPI
  158. CsrStopDumpProfile(
  159. VOID
  160. );
  161. NTSYSAPI
  162. HANDLE
  163. NTAPI
  164. CsrGetProcessId(
  165. VOID
  166. );
  167. #ifdef __cplusplus
  168. }
  169. #endif
  170. #endif // _NTCSRDLLAPI_