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.

224 lines
3.8 KiB

  1. //============================================================================
  2. // Copyright (c) 1995, Microsoft Corporation
  3. //
  4. // File: api.h
  5. //
  6. // History:
  7. // Abolade Gbadegesin Aug-8-1995 Created.
  8. //
  9. // Contains definitions for the API entry-points used by Router Manager.
  10. //============================================================================
  11. #ifndef _API_H_
  12. #define _API_H_
  13. BOOL
  14. DllStartup(
  15. );
  16. BOOL
  17. DllCleanup(
  18. );
  19. DWORD
  20. ProtocolStartup(
  21. HANDLE hEventEvent,
  22. PVOID pConfig
  23. );
  24. DWORD
  25. ProtocolCleanup(
  26. BOOL bCleanupWinsock
  27. );
  28. //
  29. // function declarations for router manager interface:
  30. //
  31. DWORD
  32. APIENTRY
  33. RegisterProtocol(
  34. IN OUT PMPR_ROUTING_CHARACTERISTICS pRoutingChar,
  35. IN OUT PMPR_SERVICE_CHARACTERISTICS pServiceChar
  36. );
  37. DWORD
  38. WINAPI
  39. StartProtocol (
  40. HANDLE NotificationEvent,
  41. SUPPORT_FUNCTIONS *SupportFunctions,
  42. LPVOID GlobalInfo,
  43. ULONG StructureVersion,
  44. ULONG StructureSize,
  45. ULONG StructureCount
  46. );
  47. DWORD
  48. APIENTRY
  49. StartComplete(
  50. VOID
  51. );
  52. DWORD
  53. APIENTRY
  54. StopProtocol(
  55. VOID
  56. );
  57. DWORD WINAPI
  58. GetGlobalInfo (
  59. PVOID OutGlobalInfo,
  60. PULONG GlobalInfoSize,
  61. PULONG StructureVersion,
  62. PULONG StructureSize,
  63. PULONG StructureCount
  64. );
  65. DWORD WINAPI
  66. SetGlobalInfo (
  67. PVOID GlobalInfo,
  68. ULONG StructureVersion,
  69. ULONG StructureSize,
  70. ULONG StructureCount
  71. );
  72. DWORD WINAPI
  73. AddInterface (
  74. PWCHAR pwszInterfaceName,
  75. ULONG InterfaceIndex,
  76. NET_INTERFACE_TYPE InterfaceType,
  77. DWORD MediaType,
  78. WORD AccessType,
  79. WORD ConnectionType,
  80. PVOID InterfaceInfo,
  81. ULONG StructureVersion,
  82. ULONG StructureSize,
  83. ULONG StructureCount
  84. );
  85. DWORD
  86. APIENTRY
  87. DeleteInterface(
  88. IN DWORD dwIndex
  89. );
  90. DWORD
  91. APIENTRY
  92. GetEventMessage(
  93. OUT ROUTING_PROTOCOL_EVENTS *pEvent,
  94. OUT MESSAGE *pResult
  95. );
  96. DWORD WINAPI
  97. GetInterfaceConfigInfo (
  98. ULONG InterfaceIndex,
  99. PVOID OutInterfaceInfo,
  100. PULONG InterfaceInfoSize,
  101. PULONG StructureVersion,
  102. PULONG StructureSize,
  103. PULONG StructureCount
  104. );
  105. DWORD WINAPI
  106. SetInterfaceConfigInfo (
  107. ULONG InterfaceIndex,
  108. PVOID InterfaceInfo,
  109. ULONG StructureVersion,
  110. ULONG StructureSize,
  111. ULONG StructureCount
  112. );
  113. DWORD WINAPI
  114. InterfaceStatus(
  115. ULONG InterfaceIndex,
  116. BOOL InterfaceActive,
  117. DWORD StatusType,
  118. PVOID StatusInfo
  119. );
  120. DWORD
  121. APIENTRY
  122. BindInterface(
  123. IN DWORD dwIndex,
  124. IN PVOID pBinding
  125. );
  126. DWORD
  127. APIENTRY
  128. UnBindInterface(
  129. IN DWORD dwIndex
  130. );
  131. DWORD
  132. APIENTRY
  133. EnableInterface(
  134. IN DWORD dwIndex
  135. );
  136. DWORD
  137. APIENTRY
  138. DisableInterface(
  139. IN DWORD dwIndex
  140. );
  141. DWORD
  142. APIENTRY
  143. DoUpdateRoutes(
  144. IN DWORD dwIndex
  145. );
  146. DWORD
  147. APIENTRY
  148. MibCreate(
  149. IN DWORD dwInputSize,
  150. IN PVOID pInputData
  151. );
  152. DWORD
  153. APIENTRY
  154. MibDelete(
  155. IN DWORD dwInputSize,
  156. IN PVOID pInputData
  157. );
  158. DWORD
  159. APIENTRY
  160. MibGet(
  161. IN DWORD dwInputSize,
  162. IN PVOID pInputData,
  163. IN OUT PDWORD pdwOutputSize,
  164. OUT PVOID pOutputData
  165. );
  166. DWORD
  167. APIENTRY
  168. MibSet(
  169. IN DWORD dwInputSize,
  170. IN PVOID pInputData
  171. );
  172. DWORD
  173. APIENTRY
  174. MibGetFirst(
  175. IN DWORD dwInputSize,
  176. IN PVOID pInputData,
  177. IN OUT PDWORD pdwOutputSize,
  178. OUT PVOID pOutputData
  179. );
  180. DWORD
  181. APIENTRY
  182. MibGetNext(
  183. IN DWORD dwInputSize,
  184. IN PVOID pInputData,
  185. IN OUT PDWORD pdwOutputSize,
  186. OUT PVOID pOutputData
  187. );
  188. #endif // _API_H_