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.

552 lines
14 KiB

  1. #include "netpch.h"
  2. #pragma hdrstop
  3. #include <mprapi.h>
  4. #include <mprapip.h>
  5. static
  6. DWORD
  7. MprAdminBufferFree(
  8. IN PVOID pBuffer
  9. )
  10. {
  11. return ERROR_PROC_NOT_FOUND;
  12. }
  13. DWORD APIENTRY
  14. MprAdminConnectionEnum(
  15. IN RAS_SERVER_HANDLE hRasServer,
  16. IN DWORD dwLevel,
  17. OUT LPBYTE * lplpbBuffer,
  18. IN DWORD dwPrefMaxLen,
  19. OUT LPDWORD lpdwEntriesRead,
  20. OUT LPDWORD lpdwTotalEntries,
  21. IN LPDWORD lpdwResumeHandle
  22. )
  23. {
  24. return ERROR_PROC_NOT_FOUND;
  25. }
  26. static
  27. DWORD APIENTRY
  28. MprAdminConnectionGetInfo(
  29. IN RAS_SERVER_HANDLE hRasServer,
  30. IN DWORD dwLevel,
  31. IN HANDLE hRasConnection,
  32. OUT LPBYTE * lplpbBuffer
  33. )
  34. {
  35. return ERROR_PROC_NOT_FOUND;
  36. }
  37. static
  38. DWORD APIENTRY
  39. MprAdminDeregisterConnectionNotification(
  40. IN MPR_SERVER_HANDLE hMprServer,
  41. IN HANDLE hEventNotification
  42. )
  43. {
  44. return ERROR_PROC_NOT_FOUND;
  45. }
  46. static
  47. DWORD APIENTRY
  48. MprAdminInterfaceCreate(
  49. IN MPR_SERVER_HANDLE hMprServer,
  50. IN DWORD dwLevel,
  51. IN LPBYTE lpbBuffer,
  52. OUT HANDLE * phInterface
  53. )
  54. {
  55. return ERROR_PROC_NOT_FOUND;
  56. }
  57. static
  58. DWORD APIENTRY
  59. MprAdminInterfaceDelete(
  60. IN MPR_SERVER_HANDLE hMprServer,
  61. IN HANDLE hInterface
  62. )
  63. {
  64. return ERROR_PROC_NOT_FOUND;
  65. }
  66. static
  67. DWORD APIENTRY
  68. MprAdminInterfaceEnum(
  69. IN MPR_SERVER_HANDLE hMprServer,
  70. IN DWORD dwLevel,
  71. OUT LPBYTE * lplpbBuffer,
  72. IN DWORD dwPrefMaxLen,
  73. OUT LPDWORD lpdwEntriesRead,
  74. OUT LPDWORD lpdwTotalEntries,
  75. IN LPDWORD lpdwResumeHandle OPTIONAL
  76. )
  77. {
  78. return ERROR_PROC_NOT_FOUND;
  79. }
  80. static
  81. DWORD APIENTRY
  82. MprAdminInterfaceGetHandle(
  83. IN MPR_SERVER_HANDLE hMprServer,
  84. IN LPWSTR lpwsInterfaceName,
  85. OUT HANDLE * phInterface,
  86. IN BOOL fIncludeClientInterfaces
  87. )
  88. {
  89. return ERROR_PROC_NOT_FOUND;
  90. }
  91. static
  92. DWORD APIENTRY
  93. MprAdminInterfaceTransportAdd(
  94. IN MPR_SERVER_HANDLE hMprServer,
  95. IN HANDLE hInterface,
  96. IN DWORD dwTransportId,
  97. IN LPBYTE pInterfaceInfo,
  98. IN DWORD dwInterfaceInfoSize
  99. )
  100. {
  101. return ERROR_PROC_NOT_FOUND;
  102. }
  103. static
  104. BOOL APIENTRY
  105. MprAdminIsServiceRunning(
  106. IN LPWSTR lpwsServerName
  107. )
  108. {
  109. return FALSE;
  110. }
  111. static
  112. DWORD APIENTRY
  113. MprAdminMIBBufferFree(
  114. IN LPVOID pBuffer
  115. )
  116. {
  117. return ERROR_PROC_NOT_FOUND;
  118. }
  119. static
  120. DWORD APIENTRY
  121. MprAdminMIBEntryCreate(
  122. IN MIB_SERVER_HANDLE hMibServer,
  123. IN DWORD dwPid,
  124. IN DWORD dwRoutingPid,
  125. IN LPVOID lpEntry,
  126. IN DWORD dwEntrySize
  127. )
  128. {
  129. return ERROR_PROC_NOT_FOUND;
  130. }
  131. static
  132. DWORD APIENTRY
  133. MprAdminMIBEntryDelete(
  134. IN MIB_SERVER_HANDLE hMibServer,
  135. IN DWORD dwProtocolId,
  136. IN DWORD dwRoutingPid,
  137. IN LPVOID lpEntry,
  138. IN DWORD dwEntrySize
  139. )
  140. {
  141. return ERROR_PROC_NOT_FOUND;
  142. }
  143. static
  144. DWORD APIENTRY
  145. MprAdminMIBEntryGet(
  146. IN MIB_SERVER_HANDLE hMibServer,
  147. IN DWORD dwProtocolId,
  148. IN DWORD dwRoutingPid,
  149. IN LPVOID lpInEntry,
  150. IN DWORD dwInEntrySize,
  151. OUT LPVOID* lplpOutEntry,
  152. OUT LPDWORD lpOutEntrySize
  153. )
  154. {
  155. return ERROR_PROC_NOT_FOUND;
  156. }
  157. static
  158. DWORD APIENTRY
  159. MprAdminMIBEntrySet(
  160. IN MIB_SERVER_HANDLE hMibServer,
  161. IN DWORD dwProtocolId,
  162. IN DWORD dwRoutingPid,
  163. IN LPVOID lpEntry,
  164. IN DWORD dwEntrySize
  165. )
  166. {
  167. return ERROR_PROC_NOT_FOUND;
  168. }
  169. static
  170. DWORD APIENTRY
  171. MprAdminMIBServerConnect(
  172. IN LPWSTR lpwsServerName OPTIONAL,
  173. OUT MIB_SERVER_HANDLE * phMibServer
  174. )
  175. {
  176. return ERROR_PROC_NOT_FOUND;
  177. }
  178. static
  179. VOID APIENTRY
  180. MprAdminMIBServerDisconnect(
  181. IN MIB_SERVER_HANDLE hMibServer
  182. )
  183. {
  184. }
  185. static
  186. DWORD APIENTRY
  187. MprAdminPortEnum(
  188. IN RAS_SERVER_HANDLE hRasServer,
  189. IN DWORD dwLevel,
  190. IN HANDLE hRasConnection,
  191. OUT LPBYTE * lplpbBuffer, // RAS_PORT_0
  192. IN DWORD dwPrefMaxLen,
  193. OUT LPDWORD lpdwEntriesRead,
  194. OUT LPDWORD lpdwTotalEntries,
  195. IN LPDWORD lpdwResumeHandle OPTIONAL
  196. )
  197. {
  198. return ERROR_PROC_NOT_FOUND;
  199. }
  200. static
  201. DWORD APIENTRY
  202. MprAdminPortGetInfo(
  203. IN RAS_SERVER_HANDLE hRasServer,
  204. IN DWORD dwLevel,
  205. IN HANDLE hPort,
  206. OUT LPBYTE * lplpbBuffer
  207. )
  208. {
  209. return ERROR_PROC_NOT_FOUND;
  210. }
  211. static
  212. DWORD APIENTRY
  213. MprAdminRegisterConnectionNotification(
  214. IN MPR_SERVER_HANDLE hMprServer,
  215. IN HANDLE hEventNotification
  216. )
  217. {
  218. return ERROR_PROC_NOT_FOUND;
  219. }
  220. static
  221. DWORD APIENTRY
  222. MprAdminServerConnect(
  223. IN LPWSTR lpwsServerName OPTIONAL,
  224. OUT MPR_SERVER_HANDLE * phMprServer
  225. )
  226. {
  227. return ERROR_PROC_NOT_FOUND;
  228. }
  229. static
  230. VOID APIENTRY
  231. MprAdminServerDisconnect(
  232. IN MPR_SERVER_HANDLE hMprServer
  233. )
  234. {
  235. }
  236. static
  237. DWORD APIENTRY
  238. MprAdminTransportCreate(
  239. IN MPR_SERVER_HANDLE hMprServer,
  240. IN DWORD dwTransportId,
  241. IN LPWSTR lpwsTransportName OPTIONAL,
  242. IN LPBYTE pGlobalInfo,
  243. IN DWORD dwGlobalInfoSize,
  244. IN LPBYTE pClientInterfaceInfo OPTIONAL,
  245. IN DWORD dwClientInterfaceInfoSize OPTIONAL,
  246. IN LPWSTR lpwsDLLPath
  247. )
  248. {
  249. return ERROR_PROC_NOT_FOUND;
  250. }
  251. static
  252. DWORD APIENTRY
  253. MprAdminUpgradeUsers(
  254. IN PWCHAR pszServer,
  255. IN BOOL bLocal
  256. )
  257. {
  258. return ERROR_PROC_NOT_FOUND;
  259. }
  260. static
  261. DWORD APIENTRY
  262. MprConfigBufferFree(
  263. IN LPVOID pBuffer
  264. )
  265. {
  266. return ERROR_PROC_NOT_FOUND;
  267. }
  268. static
  269. DWORD APIENTRY
  270. MprConfigInterfaceCreate(
  271. IN HANDLE hMprConfig,
  272. IN DWORD dwLevel,
  273. IN LPBYTE lpbBuffer,
  274. OUT HANDLE* phRouterInterface
  275. )
  276. {
  277. return ERROR_PROC_NOT_FOUND;
  278. }
  279. static
  280. DWORD APIENTRY
  281. MprConfigInterfaceDelete(
  282. IN HANDLE hMprConfig,
  283. IN HANDLE hRouterInterface
  284. )
  285. {
  286. return ERROR_PROC_NOT_FOUND;
  287. }
  288. static
  289. DWORD APIENTRY
  290. MprConfigInterfaceEnum(
  291. IN HANDLE hMprConfig,
  292. IN DWORD dwLevel,
  293. IN OUT LPBYTE* lplpBuffer,
  294. IN DWORD dwPrefMaxLen,
  295. OUT LPDWORD lpdwEntriesRead,
  296. OUT LPDWORD lpdwTotalEntries,
  297. IN OUT LPDWORD lpdwResumeHandle OPTIONAL
  298. )
  299. {
  300. return ERROR_PROC_NOT_FOUND;
  301. }
  302. static
  303. DWORD APIENTRY
  304. MprConfigInterfaceGetHandle(
  305. IN HANDLE hMprConfig,
  306. IN LPWSTR lpwsInterfaceName,
  307. OUT HANDLE* phRouterInterface
  308. )
  309. {
  310. return ERROR_PROC_NOT_FOUND;
  311. }
  312. static
  313. DWORD APIENTRY
  314. MprConfigInterfaceTransportAdd(
  315. IN HANDLE hMprConfig,
  316. IN HANDLE hRouterInterface,
  317. IN DWORD dwTransportId,
  318. IN LPWSTR lpwsTransportName OPTIONAL,
  319. IN LPBYTE pInterfaceInfo,
  320. IN DWORD dwInterfaceInfoSize,
  321. OUT HANDLE* phRouterIfTransport
  322. )
  323. {
  324. return ERROR_PROC_NOT_FOUND;
  325. }
  326. static
  327. DWORD APIENTRY
  328. MprConfigInterfaceTransportEnum(
  329. IN HANDLE hMprConfig,
  330. IN HANDLE hRouterInterface,
  331. IN DWORD dwLevel,
  332. IN OUT LPBYTE* lplpBuffer, // MPR_IFTRANSPORT_0
  333. IN DWORD dwPrefMaxLen,
  334. OUT LPDWORD lpdwEntriesRead,
  335. OUT LPDWORD lpdwTotalEntries,
  336. IN OUT LPDWORD lpdwResumeHandle OPTIONAL
  337. )
  338. {
  339. return ERROR_PROC_NOT_FOUND;
  340. }
  341. static
  342. DWORD APIENTRY
  343. MprConfigInterfaceTransportGetHandle(
  344. IN HANDLE hMprConfig,
  345. IN HANDLE hRouterInterface,
  346. IN DWORD dwTransportId,
  347. OUT HANDLE* phRouterIfTransport
  348. )
  349. {
  350. return ERROR_PROC_NOT_FOUND;
  351. }
  352. static
  353. DWORD APIENTRY
  354. MprConfigInterfaceTransportRemove(
  355. IN HANDLE hMprConfig,
  356. IN HANDLE hRouterInterface,
  357. IN HANDLE hRouterIfTransport
  358. )
  359. {
  360. return ERROR_PROC_NOT_FOUND;
  361. }
  362. static
  363. DWORD APIENTRY
  364. MprConfigServerConnect(
  365. IN LPWSTR lpwsServerName,
  366. OUT HANDLE* phMprConfig
  367. )
  368. {
  369. return ERROR_PROC_NOT_FOUND;
  370. }
  371. static
  372. VOID APIENTRY
  373. MprConfigServerDisconnect(
  374. IN HANDLE hMprConfig
  375. )
  376. {
  377. }
  378. static
  379. DWORD APIENTRY
  380. MprConfigTransportCreate(
  381. IN HANDLE hMprConfig,
  382. IN DWORD dwTransportId,
  383. IN LPWSTR lpwsTransportName OPTIONAL,
  384. IN LPBYTE pGlobalInfo,
  385. IN DWORD dwGlobalInfoSize,
  386. IN LPBYTE pClientInterfaceInfo OPTIONAL,
  387. IN DWORD dwClientInterfaceInfoSize OPTIONAL,
  388. IN LPWSTR lpwsDLLPath,
  389. OUT HANDLE* phRouterTransport
  390. )
  391. {
  392. return ERROR_PROC_NOT_FOUND;
  393. }
  394. static
  395. DWORD APIENTRY
  396. MprConfigTransportDelete(
  397. IN HANDLE hMprConfig,
  398. IN HANDLE hRouterTransport
  399. )
  400. {
  401. return ERROR_PROC_NOT_FOUND;
  402. }
  403. static
  404. DWORD APIENTRY
  405. MprConfigTransportGetHandle(
  406. IN HANDLE hMprConfig,
  407. IN DWORD dwTransportId,
  408. OUT HANDLE* phRouterTransport
  409. )
  410. {
  411. return ERROR_PROC_NOT_FOUND;
  412. }
  413. static
  414. DWORD APIENTRY
  415. MprConfigTransportGetInfo(
  416. IN HANDLE hMprConfig,
  417. IN HANDLE hRouterTransport,
  418. IN OUT LPBYTE* ppGlobalInfo OPTIONAL,
  419. OUT LPDWORD lpdwGlobalInfoSize OPTIONAL,
  420. IN OUT LPBYTE* ppClientInterfaceInfo OPTIONAL,
  421. OUT LPDWORD lpdwClientInterfaceInfoSize OPTIONAL,
  422. IN OUT LPWSTR* lplpwsDLLPath OPTIONAL
  423. )
  424. {
  425. return ERROR_PROC_NOT_FOUND;
  426. }
  427. static
  428. DWORD APIENTRY
  429. MprSetupIpInIpInterfaceFriendlyNameEnum(
  430. IN PWCHAR pwszMachineName,
  431. OUT LPBYTE* lplpBuffer,
  432. OUT LPDWORD lpdwEntriesRead
  433. )
  434. {
  435. return ERROR_PROC_NOT_FOUND;
  436. }
  437. static
  438. DWORD APIENTRY
  439. MprSetupIpInIpInterfaceFriendlyNameFree(
  440. IN LPVOID lpBuffer
  441. )
  442. {
  443. return ERROR_PROC_NOT_FOUND;
  444. }
  445. static
  446. DWORD APIENTRY
  447. MprConfigInterfaceTransportGetInfo(
  448. IN HANDLE hMprConfig,
  449. IN HANDLE hRouterInterface,
  450. IN HANDLE hRouterIfTransport,
  451. IN OUT LPBYTE* ppInterfaceInfo OPTIONAL,
  452. OUT LPDWORD lpdwInterfaceInfoSize OPTIONAL
  453. )
  454. {
  455. return ERROR_PROC_NOT_FOUND;
  456. }
  457. //
  458. // !! WARNING !! The entries below must be in alphabetical order, and are CASE SENSITIVE (eg lower case comes last!)
  459. //
  460. DEFINE_PROCNAME_ENTRIES(mprapi)
  461. {
  462. DLPENTRY(MprAdminBufferFree)
  463. DLPENTRY(MprAdminConnectionEnum)
  464. DLPENTRY(MprAdminConnectionGetInfo)
  465. DLPENTRY(MprAdminDeregisterConnectionNotification)
  466. DLPENTRY(MprAdminInterfaceCreate)
  467. DLPENTRY(MprAdminInterfaceDelete)
  468. DLPENTRY(MprAdminInterfaceEnum)
  469. DLPENTRY(MprAdminInterfaceGetHandle)
  470. DLPENTRY(MprAdminInterfaceTransportAdd)
  471. DLPENTRY(MprAdminIsServiceRunning)
  472. DLPENTRY(MprAdminMIBBufferFree)
  473. DLPENTRY(MprAdminMIBEntryCreate)
  474. DLPENTRY(MprAdminMIBEntryDelete)
  475. DLPENTRY(MprAdminMIBEntryGet)
  476. DLPENTRY(MprAdminMIBEntrySet)
  477. DLPENTRY(MprAdminMIBServerConnect)
  478. DLPENTRY(MprAdminMIBServerDisconnect)
  479. DLPENTRY(MprAdminPortEnum)
  480. DLPENTRY(MprAdminPortGetInfo)
  481. DLPENTRY(MprAdminRegisterConnectionNotification)
  482. DLPENTRY(MprAdminServerConnect)
  483. DLPENTRY(MprAdminServerDisconnect)
  484. DLPENTRY(MprAdminTransportCreate)
  485. DLPENTRY(MprAdminUpgradeUsers)
  486. DLPENTRY(MprConfigBufferFree)
  487. DLPENTRY(MprConfigInterfaceCreate)
  488. DLPENTRY(MprConfigInterfaceDelete)
  489. DLPENTRY(MprConfigInterfaceEnum)
  490. DLPENTRY(MprConfigInterfaceGetHandle)
  491. DLPENTRY(MprConfigInterfaceTransportAdd)
  492. DLPENTRY(MprConfigInterfaceTransportEnum)
  493. DLPENTRY(MprConfigInterfaceTransportGetHandle)
  494. DLPENTRY(MprConfigInterfaceTransportGetInfo)
  495. DLPENTRY(MprConfigInterfaceTransportRemove)
  496. DLPENTRY(MprConfigServerConnect)
  497. DLPENTRY(MprConfigServerDisconnect)
  498. DLPENTRY(MprConfigTransportCreate)
  499. DLPENTRY(MprConfigTransportDelete)
  500. DLPENTRY(MprConfigTransportGetHandle)
  501. DLPENTRY(MprConfigTransportGetInfo)
  502. DLPENTRY(MprSetupIpInIpInterfaceFriendlyNameEnum)
  503. DLPENTRY(MprSetupIpInIpInterfaceFriendlyNameFree)
  504. };
  505. DEFINE_PROCNAME_MAP(mprapi)