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.

183 lines
6.3 KiB

  1. /*==========================================================================
  2. *
  3. * Copyright (C) 2000 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: Request.h
  6. * Content: Request Operation Header File
  7. *@@BEGIN_MSINTERNAL
  8. * History:
  9. * Date By Reason
  10. * ==== == ======
  11. * 03/18/00 mjn Created
  12. * 04/24/00 mjn Updated Group and Info operations to use CAsyncOp's
  13. * 08/05/00 mjn Added DNProcessFailedRequest()
  14. * 08/07/00 mjn Added DNRequestIntegrityCheck(),DNHostCheckIntegrity(),DNProcessCheckIntegrity(),DNHostFixIntegrity()
  15. *@@END_MSINTERNAL
  16. *
  17. ***************************************************************************/
  18. #ifndef __REQUEST_H__
  19. #define __REQUEST_H__
  20. //**********************************************************************
  21. // Constant definitions
  22. //**********************************************************************
  23. //**********************************************************************
  24. // Macro definitions
  25. //**********************************************************************
  26. //**********************************************************************
  27. // Structure definitions
  28. //**********************************************************************
  29. //**********************************************************************
  30. // Variable definitions
  31. //**********************************************************************
  32. //**********************************************************************
  33. // Function prototypes
  34. //**********************************************************************
  35. HRESULT DNRequestCreateGroup(DIRECTNETOBJECT *const pdnObject,
  36. const PWSTR pwszName,
  37. const DWORD dwNameSize,
  38. const PVOID pvData,
  39. const DWORD dwDataSize,
  40. const DWORD dwGroupFlags,
  41. void *const pvGroupContext,
  42. void *const pvUserContext,
  43. DPNHANDLE *const phAsyncOp,
  44. const DWORD dwFlags);
  45. HRESULT DNRequestDestroyGroup(DIRECTNETOBJECT *const pdnObject,
  46. const DPNID dpnidGroup,
  47. PVOID const pvUserContext,
  48. DPNHANDLE *const phAsyncOp,
  49. const DWORD dwFlags);
  50. HRESULT DNRequestAddPlayerToGroup(DIRECTNETOBJECT *const pdnObject,
  51. const DPNID dpnidGroup,
  52. const DPNID dpnidPlayer,
  53. PVOID const pvUserContext,
  54. DPNHANDLE *const phAsyncOp,
  55. const DWORD dwFlags);
  56. HRESULT DNRequestDeletePlayerFromGroup(DIRECTNETOBJECT *const pdnObject,
  57. const DPNID dpnidGroup,
  58. const DPNID dpnidPlayer,
  59. PVOID const pvUserContext,
  60. DPNHANDLE *const phAsyncOp,
  61. const DWORD dwFlags);
  62. HRESULT DNRequestUpdateInfo(DIRECTNETOBJECT *const pdnObject,
  63. const DPNID dpnid,
  64. const PWSTR pwszName,
  65. const DWORD dwNameSize,
  66. const PVOID pvData,
  67. const DWORD dwDataSize,
  68. const DWORD dwInfoFlags,
  69. PVOID const pvUserContext,
  70. DPNHANDLE *const phAsyncOp,
  71. const DWORD dwFlags);
  72. HRESULT DNRequestIntegrityCheck(DIRECTNETOBJECT *const pdnObject,
  73. const DPNID dpnidTarget);
  74. HRESULT DNHostProcessRequest(DIRECTNETOBJECT *const pdnObject,
  75. const DWORD dwMsgId,
  76. PVOID const pv,
  77. const DPNID dpnidRequesting);
  78. void DNHostFailRequest(DIRECTNETOBJECT *const pdnObject,
  79. const DPNID dpnid,
  80. const DPNHANDLE hCompletionOp,
  81. const HRESULT hr);
  82. HRESULT DNHostCreateGroup(DIRECTNETOBJECT *const pdnObject,
  83. PWSTR pwszName,
  84. const DWORD dwNameSize,
  85. void *const pvData,
  86. const DWORD dwDataSize,
  87. const DWORD dwInfoFlags,
  88. const DWORD dwGroupFlags,
  89. void *const pvGroupContext,
  90. void *const pvUserContext,
  91. const DPNID dpnidOwner,
  92. const DPNHANDLE hCompletionOp,
  93. DPNHANDLE *const phAsyncOp,
  94. const DWORD dwFlags);
  95. HRESULT DNHostDestroyGroup(DIRECTNETOBJECT *const pdnObject,
  96. const DPNID dpnid,
  97. void *const pvUserContext,
  98. const DPNID dpnidRequesting,
  99. const DPNHANDLE hCompletionOp,
  100. DPNHANDLE *const phAsyncOp,
  101. const DWORD dwFlags);
  102. HRESULT DNHostAddPlayerToGroup(DIRECTNETOBJECT *const pdnObject,
  103. const DPNID dpnidGroup,
  104. const DPNID dpnidPlayer,
  105. void *const pvUserContext,
  106. const DPNID dpnidRequesting,
  107. const DPNHANDLE hCompletionOp,
  108. DPNHANDLE *const phAsyncOp,
  109. const DWORD dwFlags);
  110. HRESULT DNHostDeletePlayerFromGroup(DIRECTNETOBJECT *const pdnObject,
  111. const DPNID dpnidGroup,
  112. const DPNID dpnidPlayer,
  113. void *const pvUserContext,
  114. const DPNID dpnidRequesting,
  115. const DPNHANDLE hCompletionOp,
  116. DPNHANDLE *const phAsyncOp,
  117. const DWORD dwFlags);
  118. HRESULT DNHostUpdateInfo(DIRECTNETOBJECT *const pdnObject,
  119. const DPNID dpnid,
  120. PWSTR pwszName,
  121. const DWORD dwNameSize,
  122. void *const pvData,
  123. const DWORD dwDataSize,
  124. const DWORD dwInfoFlags,
  125. void *const pvUserContext,
  126. const DPNID dpnidRequesting,
  127. const DPNHANDLE hCompletionOp,
  128. DPNHANDLE *const phAsyncOp,
  129. const DWORD dwFlags);
  130. HRESULT DNHostCheckIntegrity(DIRECTNETOBJECT *const pdnObject,
  131. const DPNID dpnidTarget,
  132. const DPNID dpnidRequesting);
  133. HRESULT DNHostFixIntegrity(DIRECTNETOBJECT *const pdnObject,
  134. void *const pvBuffer);
  135. HRESULT DNProcessCreateGroup(DIRECTNETOBJECT *const pdnObject,
  136. void *const pvBuffer);
  137. HRESULT DNProcessDestroyGroup(DIRECTNETOBJECT *const pdnObject,
  138. void *const pvBuffer);
  139. HRESULT DNProcessAddPlayerToGroup(DIRECTNETOBJECT *const pdnObject,
  140. void *const pvBuffer);
  141. HRESULT DNProcessDeletePlayerFromGroup(DIRECTNETOBJECT *const pdnObject,
  142. void *const pvBuffer);
  143. HRESULT DNProcessUpdateInfo(DIRECTNETOBJECT *const pdnObject,
  144. void *const pvBuffer);
  145. HRESULT DNProcessFailedRequest(DIRECTNETOBJECT *const pdnObject,
  146. void *const pvBuffer);
  147. HRESULT DNProcessCheckIntegrity(DIRECTNETOBJECT *const pdnObject,
  148. void *const pvBuffer);
  149. //**********************************************************************
  150. // Class prototypes
  151. //**********************************************************************
  152. #endif // __REQUEST_H__