Source code of Windows XP (NT5)
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.

236 lines
3.6 KiB

  1. //////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 2001 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // libprocs.h
  7. //
  8. // Abstract:
  9. // prototypes for functions exported from library to dll/exe
  10. // Also contains prototypes for functions exported from dll/exe to
  11. // library
  12. //
  13. //////////////////////////////////////////////////////////////////////////
  14. #ifndef _TDILIB_PROCS_
  15. #define _TDILIB_PROCS_
  16. typedef ULONG TDIHANDLE;
  17. //////////////////////////////////////////////////////////////////////////
  18. // prototypes of lib functions called from dll
  19. //////////////////////////////////////////////////////////////////////////
  20. //
  21. // functions from lib\connect.cpp
  22. //
  23. NTSTATUS
  24. DoConnect(
  25. TDIHANDLE TdiHandle,
  26. PTRANSPORT_ADDRESS pTransportAddress,
  27. ULONG ulTimeout
  28. );
  29. NTSTATUS
  30. DoListen(
  31. TDIHANDLE TdiHandle
  32. );
  33. VOID
  34. DoDisconnect(
  35. TDIHANDLE TdiHandle,
  36. ULONG ulFlags
  37. );
  38. BOOLEAN
  39. DoIsConnected(
  40. TDIHANDLE TdiHandle
  41. );
  42. //
  43. // functions from lib\events.cpp
  44. //
  45. VOID
  46. DoEnableEventHandler(
  47. TDIHANDLE TdiHandle,
  48. ULONG ulEventId
  49. );
  50. //
  51. // functions from lib\misc.cpp
  52. //
  53. VOID
  54. DoDebugLevel(
  55. ULONG ulDebugLevel
  56. );
  57. //
  58. // functions from lib\open.cpp
  59. //
  60. ULONG
  61. DoGetNumDevices(
  62. ULONG ulAddressType
  63. );
  64. NTSTATUS
  65. DoGetDeviceName(
  66. ULONG ulAddressType,
  67. ULONG ulSlotNum,
  68. TCHAR *strName
  69. );
  70. NTSTATUS
  71. DoGetAddress(
  72. ULONG ulAddressType,
  73. ULONG ulSlotNum,
  74. PTRANSPORT_ADDRESS pTransAddr
  75. );
  76. TDIHANDLE
  77. DoOpenControl(
  78. TCHAR *strDeviceName
  79. );
  80. VOID
  81. DoCloseControl(
  82. TDIHANDLE TdiHandle
  83. );
  84. TDIHANDLE
  85. DoOpenAddress(
  86. TCHAR * strDeviceName,
  87. PTRANSPORT_ADDRESS pTransportAddress
  88. );
  89. VOID
  90. DoCloseAddress(
  91. TDIHANDLE TdiHandle
  92. );
  93. TDIHANDLE
  94. DoOpenEndpoint(
  95. TCHAR *strDeviceName,
  96. PTRANSPORT_ADDRESS pTransportAddress
  97. );
  98. VOID
  99. DoCloseEndpoint(
  100. TDIHANDLE TdiHandle
  101. );
  102. //
  103. // functions from lib\receive.cpp
  104. //
  105. ULONG
  106. DoReceiveDatagram(
  107. TDIHANDLE TdiHandle,
  108. PTRANSPORT_ADDRESS pInTransportAddress,
  109. PTRANSPORT_ADDRESS pOutTransportAddress,
  110. PUCHAR *ppucBuffer
  111. );
  112. ULONG
  113. DoReceive(
  114. TDIHANDLE TdiHandle,
  115. PUCHAR *ppucBuffer
  116. );
  117. VOID
  118. DoPostReceiveBuffer(
  119. TDIHANDLE TdiHandle,
  120. ULONG ulBufferLength
  121. );
  122. ULONG
  123. DoFetchReceiveBuffer(
  124. TDIHANDLE TdiHandle,
  125. PUCHAR * ppDataBuffer
  126. );
  127. //
  128. // functions from lib\send.cpp
  129. //
  130. VOID
  131. DoSendDatagram(
  132. TDIHANDLE TdiHandle,
  133. PTRANSPORT_ADDRESS pTransportAddress,
  134. PUCHAR pucBuffer,
  135. ULONG ulBufferLength
  136. );
  137. VOID
  138. DoSend(
  139. TDIHANDLE TdiHandle,
  140. PUCHAR pucBuffer,
  141. ULONG ulBufferLength,
  142. ULONG ulFlags
  143. );
  144. //
  145. // functions from lib\tdilib.cpp
  146. //
  147. BOOLEAN
  148. TdiLibInit(VOID);
  149. VOID
  150. TdiLibClose(VOID);
  151. //
  152. // functions from lib\tdiquery.cpp
  153. //
  154. PVOID
  155. DoTdiQuery(
  156. TDIHANDLE Tdihandle,
  157. ULONG QueryId
  158. );
  159. VOID
  160. DoPrintProviderInfo(
  161. PTDI_PROVIDER_INFO pInfo
  162. );
  163. VOID
  164. DoPrintProviderStats(
  165. PTDI_PROVIDER_STATISTICS pStats
  166. );
  167. VOID
  168. DoPrintAdapterStatus(
  169. PADAPTER_STATUS pStatus
  170. );
  171. //
  172. // functions from lib\utils.cpp
  173. //
  174. TCHAR *
  175. TdiLibStatusMessage(
  176. LONG lGeneralStatus
  177. );
  178. VOID
  179. DoPrintAddress(
  180. PTRANSPORT_ADDRESS pTransportAddress
  181. );
  182. #endif // _TDILIB_PROCS_
  183. //////////////////////////////////////////////////////////////////////
  184. // End of libprocs.h
  185. //////////////////////////////////////////////////////////////////////