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.

211 lines
2.6 KiB

  1. /*++
  2. Copyright (c) 1994 Microsoft Corporation
  3. Module Name:
  4. proto.h
  5. Abstract:
  6. contains global data declerations.
  7. Author:
  8. Madan Appiah (madana) 12-Apr-1995
  9. Environment:
  10. User Mode - Win32
  11. Revision History:
  12. --*/
  13. #ifndef _PROTO_
  14. #define _PROTO_
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. //
  19. // svccom.cxx
  20. //
  21. DWORD
  22. MakeSapServiceName(
  23. LPSTR SapNameBuffer,
  24. DWORD SapNameBufferLen
  25. );
  26. VOID
  27. MakeUniqueServerName(
  28. LPBYTE StrBuffer,
  29. DWORD StrBufferLen,
  30. LPSTR ComputerName
  31. );
  32. DWORD
  33. ComputeCheckSum(
  34. LPBYTE Buffer,
  35. DWORD BufferLength
  36. );
  37. BOOL
  38. DLLSvclocEntry(
  39. IN HINSTANCE DllHandle,
  40. IN DWORD Reason,
  41. IN LPVOID Reserved
  42. );
  43. DWORD
  44. DllProcessAttachSvcloc(
  45. VOID
  46. );
  47. DWORD
  48. DllProcessDetachSvcloc(
  49. VOID
  50. );
  51. VOID
  52. FreeServiceInfo(
  53. LPINET_SERVICE_INFO ServiceInfo
  54. );
  55. VOID
  56. FreeServerInfo(
  57. LPINET_SERVER_INFO ServerInfo
  58. );
  59. VOID
  60. FreeServersList(
  61. LPINET_SERVERS_LIST ServersList
  62. );
  63. BOOL
  64. GetNetBiosLana(
  65. PLANA_ENUM pLanas
  66. );
  67. BOOL
  68. GetEnumNBLana(
  69. PLANA_ENUM pLanas
  70. );
  71. BOOL
  72. MakeNBSocketForLana(
  73. UCHAR Lana,
  74. PSOCKADDR pSocketAddress,
  75. SOCKET *pNBSocket
  76. );
  77. //
  78. // svccli.cxx
  79. //
  80. DWORD
  81. DiscoverIpxServers(
  82. LPSTR ServerName
  83. );
  84. DWORD
  85. DiscoverIpServers(
  86. LPSTR ServerName
  87. );
  88. DWORD
  89. ProcessSvclocQueryResponse(
  90. SOCKET ReceivedSocket,
  91. LPBYTE ReceivedMessage,
  92. DWORD ReceivedMessageLength,
  93. SOCKADDR *SourcesAddress,
  94. DWORD SourcesAddressLength
  95. );
  96. VOID
  97. ServerDiscoverThread(
  98. LPVOID Parameter
  99. );
  100. DWORD
  101. MakeClientQueryMesage(
  102. ULONGLONG ServicesMask
  103. );
  104. DWORD
  105. CleanupOldResponses(
  106. VOID
  107. );
  108. DWORD
  109. GetDiscoveredServerInfo(
  110. LPSTR ServerName,
  111. IN ULONGLONG ServicesMask,
  112. LPINET_SERVER_INFO *ServerInfo
  113. );
  114. DWORD
  115. ProcessDiscoveryResponses(
  116. IN ULONGLONG ServicesMask,
  117. OUT LPINET_SERVERS_LIST *INetServersList
  118. );
  119. DWORD
  120. ReceiveResponses(
  121. WORD Timeout,
  122. BOOL WaitForAllResponses
  123. );
  124. DWORD
  125. DiscoverNetBiosServers(
  126. LPSTR ServerName
  127. );
  128. DWORD
  129. ReceiveNetBiosResponses(
  130. LPSVCLOC_NETBIOS_RESPONSE *NetBiosResponses,
  131. DWORD *NumResponses,
  132. DWORD TimeoutinMSecs,
  133. BOOL WaitForAllResponses
  134. );
  135. //
  136. // svcsrv.cxx
  137. //
  138. DWORD
  139. MakeResponseBuffer(
  140. VOID
  141. );
  142. DWORD
  143. ServerRegisterAndListen(
  144. VOID
  145. );
  146. DWORD
  147. ProcessSvclocQuery(
  148. SOCKET ReceivedSocket,
  149. LPBYTE ReceivedMessage,
  150. DWORD ReceivedMessageLength,
  151. struct sockaddr *SourcesAddress,
  152. DWORD SourcesAddressLength
  153. );
  154. VOID
  155. SocketListenThread(
  156. LPVOID Parameter
  157. );
  158. DWORD
  159. ServerDeregisterAndStopListen(
  160. VOID
  161. );
  162. #ifdef __cplusplus
  163. }
  164. #endif
  165. #endif // _PROTO_
  166.