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.

227 lines
4.0 KiB

  1. /*++
  2. Copyright (c) 1995-1997 Microsoft Corporation
  3. Module Name:
  4. clusrtl.h
  5. Abstract:
  6. Header file for definitions and structures for the NT Cluster
  7. Run Time Library
  8. Author:
  9. John Vert (jvert) 30-Nov-1995
  10. Revision History:
  11. --*/
  12. #ifndef _CLNETCFG_INCLUDED_
  13. #define _CLNETCFG_INCLUDED_
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. typedef struct {
  18. LIST_ENTRY Linkage;
  19. LPWSTR Id;
  20. LPWSTR Name;
  21. LPWSTR Address;
  22. LPWSTR AddressMask;
  23. } CLNET_NETWORK, *PCLNET_NETWORK;
  24. typedef struct {
  25. LIST_ENTRY Linkage;
  26. LPWSTR Id;
  27. LPWSTR Name;
  28. LPWSTR NodeId;
  29. LPWSTR NetworkId;
  30. LPWSTR Adapter;
  31. LPWSTR Address;
  32. } CLNET_INTERFACE, *PCLNET_INTERFACE;
  33. PCLNET_NETWORK
  34. ClNetAllocNetwork(
  35. LPWSTR Id,
  36. LPWSTR Name,
  37. LPWSTR Address,
  38. LPWSTR AddressMask
  39. );
  40. VOID
  41. ClNetFreeNetwork(
  42. PCLNET_NETWORK Network
  43. );
  44. PCLNET_INTERFACE
  45. ClNetAllocInterface(
  46. LPWSTR Id,
  47. LPWSTR Name,
  48. LPWSTR NodeId,
  49. LPWSTR NetworkId,
  50. LPWSTR Adapter,
  51. LPWSTR Address
  52. );
  53. VOID
  54. ClNetFreeInterface(
  55. PCLNET_INTERFACE Interface
  56. );
  57. /////////////////////////////////////////////////////////////////////////
  58. //
  59. // Routines exported by the ClNet package
  60. //
  61. LPWSTR
  62. ClNetLoadString(
  63. IN UINT StringId
  64. );
  65. LPWSTR
  66. ClNetMakeInterfaceName(
  67. LPWSTR Prefix, OPTIONAL
  68. LPWSTR NodeName,
  69. LPWSTR AdapterName
  70. );
  71. LPWSTR
  72. ClNetMakeNewNetworkName(
  73. IN LPWSTR NewNetworkName,
  74. IN LPWSTR InterfaceName
  75. );
  76. DWORD
  77. ClNetConfigureNetworks(
  78. IN RPC_BINDING_HANDLE JoinSponsorBinding,
  79. IN LPWSTR LocalNodeId,
  80. IN LPWSTR LocalNodeName,
  81. IN PNM_NETWORK_ENUM NetworkEnum,
  82. IN PNM_INTERFACE_ENUM InterfaceEnum,
  83. IN LPWSTR DefaultEndpoint,
  84. IN LPWSTR NewNetworkNameString,
  85. OUT LPDWORD MatchedNetworkCount,
  86. OUT LPDWORD NewNetworkCount
  87. );
  88. VOID
  89. ClNetFreeNetworkEnum(
  90. IN PNM_NETWORK_ENUM NetworkEnum
  91. );
  92. VOID
  93. ClNetFreeNetworkInfo(
  94. IN PNM_NETWORK_INFO NetworkInfo
  95. );
  96. VOID
  97. ClNetFreeInterfaceEnum(
  98. IN PNM_INTERFACE_ENUM InterfaceEnum
  99. );
  100. VOID
  101. ClNetFreeInterfaceInfo(
  102. IN PNM_INTERFACE_INFO InterfaceInfo
  103. );
  104. VOID
  105. ClNetFreeNodeEnum(
  106. IN PNM_NODE_ENUM NodeEnum
  107. );
  108. VOID
  109. ClNetFreeNodeEnum2(
  110. IN PNM_NODE_ENUM2 NodeEnum2
  111. );
  112. VOID
  113. ClNetFreeNodeInfo(
  114. IN PNM_NODE_INFO NodeInfo
  115. );
  116. //
  117. // Routines that must be supplied by users of the ClNet package.
  118. //
  119. VOID
  120. ClNetPrint(
  121. IN ULONG LogLevel,
  122. IN PCHAR FormatString,
  123. ...
  124. );
  125. VOID
  126. ClNetLogEvent(
  127. IN DWORD LogLevel,
  128. IN DWORD MessageId
  129. );
  130. VOID
  131. ClNetLogEvent1(
  132. IN DWORD LogLevel,
  133. IN DWORD MessageId,
  134. IN LPCWSTR Arg1
  135. );
  136. VOID
  137. ClNetLogEvent2(
  138. IN DWORD LogLevel,
  139. IN DWORD MessageId,
  140. IN LPCWSTR Arg1,
  141. IN LPCWSTR Arg2
  142. );
  143. VOID
  144. ClNetLogEvent3(
  145. IN DWORD LogLevel,
  146. IN DWORD MessageId,
  147. IN LPCWSTR Arg1,
  148. IN LPCWSTR Arg2,
  149. IN LPCWSTR Arg3
  150. );
  151. DWORD
  152. ClNetCreateNetworkDefinition(
  153. IN RPC_BINDING_HANDLE JoinSponsorBinding,
  154. IN PNM_NETWORK_INFO NetworkInfo,
  155. IN PNM_INTERFACE_INFO InterfaceInfo
  156. );
  157. DWORD
  158. ClNetCreateInterfaceDefinition(
  159. IN RPC_BINDING_HANDLE JoinSponsorBinding,
  160. IN PNM_INTERFACE_INFO InterfaceInfo
  161. );
  162. DWORD
  163. ClNetSetInterfaceDefinition(
  164. IN RPC_BINDING_HANDLE JoinSponsorBinding,
  165. IN PNM_INTERFACE_INFO InterfaceInfo
  166. );
  167. DWORD
  168. ClNetDeleteInterfaceDefinition(
  169. IN RPC_BINDING_HANDLE JoinSponsorBinding,
  170. IN LPWSTR InterfaceId,
  171. IN LPWSTR NetworkId,
  172. OUT PBOOLEAN NetworkDeleted
  173. );
  174. #ifdef __cplusplus
  175. }
  176. #endif
  177. #endif // ifndef _CLNETCFG_INCLUDED_
  178.