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.

218 lines
4.0 KiB

  1. #include "inetsrvpch.h"
  2. #pragma hdrstop
  3. #include <comsvcs.h>
  4. #include <mq.h>
  5. static
  6. HRESULT
  7. APIENTRY
  8. MQBeginTransaction(
  9. OUT ITransaction **ppTransaction
  10. )
  11. {
  12. if (ppTransaction)
  13. *ppTransaction = NULL;
  14. return HRESULT_FROM_WIN32(ERROR_PROC_NOT_FOUND);
  15. }
  16. static
  17. HRESULT
  18. APIENTRY
  19. MQCloseCursor(
  20. IN HANDLE hCursor
  21. )
  22. {
  23. return HRESULT_FROM_WIN32(ERROR_PROC_NOT_FOUND);
  24. }
  25. static
  26. HRESULT
  27. APIENTRY
  28. MQCloseQueue(
  29. IN QUEUEHANDLE hQueue
  30. )
  31. {
  32. return HRESULT_FROM_WIN32(ERROR_PROC_NOT_FOUND);
  33. }
  34. static
  35. HRESULT
  36. APIENTRY
  37. MQCreateCursor(
  38. IN QUEUEHANDLE hQueue,
  39. OUT PHANDLE phCursor
  40. )
  41. {
  42. if (phCursor)
  43. *phCursor = NULL;
  44. return HRESULT_FROM_WIN32(ERROR_PROC_NOT_FOUND);
  45. }
  46. static
  47. HRESULT
  48. APIENTRY
  49. MQCreateQueue(
  50. IN PSECURITY_DESCRIPTOR pSecurityDescriptor,
  51. IN OUT MQQUEUEPROPS* pQueueProps,
  52. OUT LPWSTR lpwcsFormatName,
  53. IN OUT LPDWORD lpdwFormatNameLength
  54. )
  55. {
  56. return HRESULT_FROM_WIN32(ERROR_PROC_NOT_FOUND);
  57. }
  58. static
  59. HRESULT
  60. APIENTRY
  61. MQDeleteQueue(
  62. IN LPCWSTR lpwcsFormatName
  63. )
  64. {
  65. return HRESULT_FROM_WIN32(ERROR_PROC_NOT_FOUND);
  66. }
  67. static
  68. VOID
  69. APIENTRY
  70. MQFreeSecurityContext(
  71. IN HANDLE hSecurityContext
  72. )
  73. {
  74. // Not much we can do here...
  75. }
  76. static
  77. HRESULT
  78. APIENTRY
  79. MQGetPrivateComputerInformation(
  80. IN LPCWSTR lpwcsComputerName,
  81. IN OUT MQPRIVATEPROPS* pPrivateProps
  82. )
  83. {
  84. return HRESULT_FROM_WIN32(ERROR_PROC_NOT_FOUND);
  85. }
  86. static
  87. HRESULT
  88. APIENTRY
  89. MQGetQueueProperties(
  90. IN LPCWSTR lpwcsFormatName,
  91. OUT MQQUEUEPROPS* pQueueProps
  92. )
  93. {
  94. if (pQueueProps)
  95. ZeroMemory (pQueueProps, sizeof (MQQUEUEPROPS));
  96. return HRESULT_FROM_WIN32(ERROR_PROC_NOT_FOUND);
  97. }
  98. static
  99. HRESULT
  100. APIENTRY
  101. MQGetSecurityContextEx(
  102. IN PVOID lpCertBuffer,
  103. IN DWORD dwCertBufferLength,
  104. OUT HANDLE* phSecurityContext
  105. )
  106. {
  107. if (phSecurityContext)
  108. *phSecurityContext = NULL;
  109. return HRESULT_FROM_WIN32(ERROR_PROC_NOT_FOUND);
  110. }
  111. static
  112. HRESULT
  113. APIENTRY
  114. MQOpenQueue(
  115. IN LPCWSTR lpwcsFormatName,
  116. IN DWORD dwAccess,
  117. IN DWORD dwShareMode,
  118. OUT QUEUEHANDLE* phQueue
  119. )
  120. {
  121. if (phQueue)
  122. *phQueue = NULL;
  123. return HRESULT_FROM_WIN32(ERROR_PROC_NOT_FOUND);
  124. }
  125. static
  126. HRESULT
  127. APIENTRY
  128. MQPathNameToFormatName(
  129. IN LPCWSTR lpwcsPathName,
  130. OUT LPWSTR lpwcsFormatName,
  131. IN OUT LPDWORD lpdwFormatNameLength
  132. )
  133. {
  134. return HRESULT_FROM_WIN32(ERROR_PROC_NOT_FOUND);
  135. }
  136. static
  137. HRESULT
  138. APIENTRY
  139. MQReceiveMessage(
  140. IN QUEUEHANDLE hSource,
  141. IN DWORD dwTimeout,
  142. IN DWORD dwAction,
  143. IN OUT MQMSGPROPS* pMessageProps,
  144. IN OUT LPOVERLAPPED lpOverlapped,
  145. IN PMQRECEIVECALLBACK fnReceiveCallback,
  146. IN HANDLE hCursor,
  147. IN ITransaction* pTransaction
  148. )
  149. {
  150. return HRESULT_FROM_WIN32(ERROR_PROC_NOT_FOUND);
  151. }
  152. static
  153. HRESULT
  154. APIENTRY
  155. MQSendMessage(
  156. IN QUEUEHANDLE hDestinationQueue,
  157. IN MQMSGPROPS* pMessageProps,
  158. IN ITransaction *pTransaction
  159. )
  160. {
  161. return HRESULT_FROM_WIN32(ERROR_PROC_NOT_FOUND);
  162. }
  163. static
  164. HRESULT
  165. APIENTRY
  166. MQSetQueueSecurity(
  167. IN LPCWSTR lpwcsFormatName,
  168. IN SECURITY_INFORMATION SecurityInformation,
  169. IN PSECURITY_DESCRIPTOR pSecurityDescriptor
  170. )
  171. {
  172. return HRESULT_FROM_WIN32(ERROR_PROC_NOT_FOUND);
  173. }
  174. //
  175. // !! WARNING !! The entries below must be in alphabetical order, and are CASE SENSITIVE (eg lower case comes last!)
  176. //
  177. DEFINE_PROCNAME_ENTRIES(mqrt)
  178. {
  179. DLPENTRY(MQBeginTransaction)
  180. DLPENTRY(MQCloseCursor)
  181. DLPENTRY(MQCloseQueue)
  182. DLPENTRY(MQCreateCursor)
  183. DLPENTRY(MQCreateQueue)
  184. DLPENTRY(MQDeleteQueue)
  185. DLPENTRY(MQFreeSecurityContext)
  186. DLPENTRY(MQGetPrivateComputerInformation)
  187. DLPENTRY(MQGetQueueProperties)
  188. DLPENTRY(MQGetSecurityContextEx)
  189. DLPENTRY(MQOpenQueue)
  190. DLPENTRY(MQPathNameToFormatName)
  191. DLPENTRY(MQReceiveMessage)
  192. DLPENTRY(MQSendMessage)
  193. DLPENTRY(MQSetQueueSecurity)
  194. };
  195. DEFINE_PROCNAME_MAP(mqrt)