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.

298 lines
5.1 KiB

  1. #include "netpch.h"
  2. #pragma hdrstop
  3. #include <ras.h>
  4. #include <rasapip.h>
  5. #include <rasuip.h>
  6. static
  7. DWORD
  8. APIENTRY
  9. DwCloneEntry(
  10. IN LPCWSTR lpwszPhonebookPath,
  11. IN LPCWSTR lpwszSrcEntryName,
  12. IN LPCWSTR lpwszDstEntryName
  13. )
  14. {
  15. return ERROR_PROC_NOT_FOUND;
  16. }
  17. static
  18. DWORD
  19. APIENTRY
  20. DwEnumEntryDetails(
  21. IN LPCWSTR lpszPhonebookPath,
  22. OUT LPRASENUMENTRYDETAILS lprasentryname,
  23. IN OUT LPDWORD lpcb,
  24. OUT LPDWORD lpcEntries
  25. )
  26. {
  27. return ERROR_PROC_NOT_FOUND;
  28. }
  29. static
  30. DWORD
  31. APIENTRY
  32. DwRasUninitialize()
  33. {
  34. return ERROR_PROC_NOT_FOUND;
  35. }
  36. static
  37. DWORD
  38. APIENTRY
  39. RasConnectionNotificationW (
  40. HRASCONN hrasconn,
  41. HANDLE hEvent,
  42. DWORD dwfEvents
  43. )
  44. {
  45. return ERROR_PROC_NOT_FOUND;
  46. }
  47. static
  48. DWORD
  49. APIENTRY
  50. RasDeleteEntryW (
  51. LPCWSTR lpszPhonebook,
  52. LPCWSTR lpszEntry
  53. )
  54. {
  55. return ERROR_PROC_NOT_FOUND;
  56. }
  57. static
  58. DWORD
  59. APIENTRY
  60. RasEnumConnectionsW (
  61. LPRASCONNW lprasconn,
  62. LPDWORD lpcb,
  63. LPDWORD lpcbConnections
  64. )
  65. {
  66. return ERROR_PROC_NOT_FOUND;
  67. }
  68. static
  69. DWORD
  70. APIENTRY
  71. RasGetConnectStatusW (
  72. HRASCONN hrasconn,
  73. LPRASCONNSTATUSW lprasconnstatus
  74. )
  75. {
  76. return ERROR_PROC_NOT_FOUND;
  77. }
  78. static
  79. DWORD
  80. APIENTRY
  81. RasGetConnectionStatistics (
  82. HRASCONN hRasConn,
  83. RAS_STATS *lpStatistics
  84. )
  85. {
  86. return ERROR_PROC_NOT_FOUND;
  87. }
  88. static
  89. DWORD
  90. APIENTRY
  91. RasGetEntryPropertiesW (
  92. LPCWSTR lpszPhonebook,
  93. LPCWSTR lpszEntry,
  94. LPRASENTRYW lpRasEntry,
  95. LPDWORD lpcbRasEntry,
  96. LPBYTE lpbDeviceConfig,
  97. LPDWORD lpcbDeviceConfig
  98. )
  99. {
  100. return ERROR_PROC_NOT_FOUND;
  101. }
  102. static
  103. DWORD
  104. APIENTRY
  105. RasGetErrorStringW (
  106. IN UINT ResourceId,
  107. OUT LPWSTR lpszString,
  108. IN DWORD InBufSize
  109. )
  110. {
  111. return ERROR_PROC_NOT_FOUND;
  112. }
  113. static
  114. DWORD APIENTRY
  115. RasGetProjectionInfoW(
  116. HRASCONN hrasconn,
  117. RASPROJECTION rasprojection,
  118. LPVOID lpprojection,
  119. LPDWORD lpcb )
  120. {
  121. return ERROR_PROC_NOT_FOUND;
  122. }
  123. static
  124. DWORD
  125. APIENTRY
  126. RasGetSubEntryHandleW (
  127. HRASCONN hrasconn,
  128. DWORD dwSubEntry,
  129. LPHRASCONN lphrasconn
  130. )
  131. {
  132. return ERROR_PROC_NOT_FOUND;
  133. }
  134. static
  135. DWORD
  136. APIENTRY
  137. RasGetSubEntryPropertiesW (
  138. LPCWSTR lpszPhonebook,
  139. LPCWSTR lpszEntry,
  140. DWORD dwSubEntry,
  141. LPRASSUBENTRYW lpRasSubEntry,
  142. LPDWORD lpcbRasSubEntry,
  143. LPBYTE lpbDeviceConfig,
  144. LPDWORD lpcbDeviceCnfig
  145. )
  146. {
  147. return ERROR_PROC_NOT_FOUND;
  148. }
  149. static
  150. DWORD
  151. APIENTRY
  152. RasHangUpW (
  153. HRASCONN hrasconn
  154. )
  155. {
  156. return ERROR_PROC_NOT_FOUND;
  157. }
  158. static
  159. DWORD
  160. APIENTRY
  161. RasIsSharedConnection(
  162. IN LPRASSHARECONN pConn,
  163. OUT PBOOL pfShared
  164. )
  165. {
  166. return ERROR_PROC_NOT_FOUND;
  167. }
  168. static
  169. DWORD
  170. APIENTRY
  171. RasQueryLanConnTable(
  172. IN LPRASSHARECONN pExcludedConn,
  173. OUT LPVOID* ppvLanConnTable OPTIONAL, // NETCON_PROPERTIES
  174. OUT LPDWORD pdwLanConnCount
  175. )
  176. {
  177. return ERROR_PROC_NOT_FOUND;
  178. }
  179. static
  180. DWORD
  181. APIENTRY
  182. RasRenameEntryW (
  183. LPCWSTR lpszPhonebook,
  184. LPCWSTR lpszOldEntry,
  185. LPCWSTR lpszNewEntry
  186. )
  187. {
  188. return ERROR_PROC_NOT_FOUND;
  189. }
  190. static
  191. DWORD
  192. APIENTRY
  193. RasSetEntryPropertiesW (
  194. LPCWSTR lpszPhonebook,
  195. LPCWSTR lpszEntry,
  196. LPRASENTRYW lpRasEntry,
  197. DWORD dwcbRasEntry,
  198. LPBYTE lpbDeviceConfig,
  199. DWORD dwcbDeviceConfig
  200. )
  201. {
  202. return ERROR_PROC_NOT_FOUND;
  203. }
  204. static
  205. DWORD
  206. APIENTRY
  207. RasShareConnection(
  208. IN LPRASSHARECONN pConn,
  209. IN GUID* pPrivateLanGuid OPTIONAL
  210. )
  211. {
  212. return ERROR_PROC_NOT_FOUND;
  213. }
  214. static
  215. DWORD
  216. APIENTRY
  217. RasUnshareConnection(
  218. OUT PBOOL pfWasShared OPTIONAL
  219. )
  220. {
  221. return ERROR_PROC_NOT_FOUND;
  222. }
  223. static
  224. DWORD
  225. APIENTRY
  226. RasValidateEntryNameW (
  227. LPCWSTR lpszPhonebook,
  228. LPCWSTR lpszEntry
  229. )
  230. {
  231. return ERROR_PROC_NOT_FOUND;
  232. }
  233. static
  234. DWORD
  235. APIENTRY
  236. RasQuerySharedConnection(
  237. OUT LPRASSHARECONN pConn
  238. )
  239. {
  240. return ERROR_PROC_NOT_FOUND;
  241. }
  242. //
  243. // !! WARNING !! The entries below must be in alphabetical order, and are CASE SENSITIVE (eg lower case comes last!)
  244. //
  245. DEFINE_PROCNAME_ENTRIES(rasapi32)
  246. {
  247. DLPENTRY(DwCloneEntry)
  248. DLPENTRY(DwEnumEntryDetails)
  249. DLPENTRY(DwRasUninitialize)
  250. DLPENTRY(RasConnectionNotificationW)
  251. DLPENTRY(RasDeleteEntryW)
  252. DLPENTRY(RasEnumConnectionsW)
  253. DLPENTRY(RasGetConnectStatusW)
  254. DLPENTRY(RasGetConnectionStatistics)
  255. DLPENTRY(RasGetEntryPropertiesW)
  256. DLPENTRY(RasGetErrorStringW)
  257. DLPENTRY(RasGetProjectionInfoW)
  258. DLPENTRY(RasGetSubEntryHandleW)
  259. DLPENTRY(RasGetSubEntryPropertiesW)
  260. DLPENTRY(RasHangUpW)
  261. DLPENTRY(RasIsSharedConnection)
  262. DLPENTRY(RasQueryLanConnTable)
  263. DLPENTRY(RasQuerySharedConnection)
  264. DLPENTRY(RasRenameEntryW)
  265. DLPENTRY(RasSetEntryPropertiesW)
  266. DLPENTRY(RasShareConnection)
  267. DLPENTRY(RasUnshareConnection)
  268. DLPENTRY(RasValidateEntryNameW)
  269. };
  270. DEFINE_PROCNAME_MAP(rasapi32)