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.

662 lines
17 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. DWORD APIENTRY
  105. MprAdminInterfaceTransportRemove(
  106. IN MPR_SERVER_HANDLE hMprServer,
  107. IN HANDLE hInterface,
  108. IN DWORD dwTransportId
  109. )
  110. {
  111. return ERROR_PROC_NOT_FOUND;
  112. }
  113. static
  114. BOOL APIENTRY
  115. MprAdminIsServiceRunning(
  116. IN LPWSTR lpwsServerName
  117. )
  118. {
  119. return FALSE;
  120. }
  121. static
  122. DWORD APIENTRY
  123. MprAdminMIBBufferFree(
  124. IN LPVOID pBuffer
  125. )
  126. {
  127. return ERROR_PROC_NOT_FOUND;
  128. }
  129. static
  130. DWORD APIENTRY
  131. MprAdminMIBEntryCreate(
  132. IN MIB_SERVER_HANDLE hMibServer,
  133. IN DWORD dwPid,
  134. IN DWORD dwRoutingPid,
  135. IN LPVOID lpEntry,
  136. IN DWORD dwEntrySize
  137. )
  138. {
  139. return ERROR_PROC_NOT_FOUND;
  140. }
  141. static
  142. DWORD APIENTRY
  143. MprAdminMIBEntryDelete(
  144. IN MIB_SERVER_HANDLE hMibServer,
  145. IN DWORD dwProtocolId,
  146. IN DWORD dwRoutingPid,
  147. IN LPVOID lpEntry,
  148. IN DWORD dwEntrySize
  149. )
  150. {
  151. return ERROR_PROC_NOT_FOUND;
  152. }
  153. static
  154. DWORD APIENTRY
  155. MprAdminMIBEntryGet(
  156. IN MIB_SERVER_HANDLE hMibServer,
  157. IN DWORD dwProtocolId,
  158. IN DWORD dwRoutingPid,
  159. IN LPVOID lpInEntry,
  160. IN DWORD dwInEntrySize,
  161. OUT LPVOID* lplpOutEntry,
  162. OUT LPDWORD lpOutEntrySize
  163. )
  164. {
  165. return ERROR_PROC_NOT_FOUND;
  166. }
  167. static
  168. DWORD APIENTRY
  169. MprAdminMIBEntrySet(
  170. IN MIB_SERVER_HANDLE hMibServer,
  171. IN DWORD dwProtocolId,
  172. IN DWORD dwRoutingPid,
  173. IN LPVOID lpEntry,
  174. IN DWORD dwEntrySize
  175. )
  176. {
  177. return ERROR_PROC_NOT_FOUND;
  178. }
  179. static
  180. DWORD APIENTRY
  181. MprAdminMIBServerConnect(
  182. IN LPWSTR lpwsServerName OPTIONAL,
  183. OUT MIB_SERVER_HANDLE * phMibServer
  184. )
  185. {
  186. return ERROR_PROC_NOT_FOUND;
  187. }
  188. static
  189. VOID APIENTRY
  190. MprAdminMIBServerDisconnect(
  191. IN MIB_SERVER_HANDLE hMibServer
  192. )
  193. {
  194. }
  195. static
  196. DWORD APIENTRY
  197. MprAdminPortEnum(
  198. IN RAS_SERVER_HANDLE hRasServer,
  199. IN DWORD dwLevel,
  200. IN HANDLE hRasConnection,
  201. OUT LPBYTE * lplpbBuffer, // RAS_PORT_0
  202. IN DWORD dwPrefMaxLen,
  203. OUT LPDWORD lpdwEntriesRead,
  204. OUT LPDWORD lpdwTotalEntries,
  205. IN LPDWORD lpdwResumeHandle OPTIONAL
  206. )
  207. {
  208. return ERROR_PROC_NOT_FOUND;
  209. }
  210. static
  211. DWORD APIENTRY
  212. MprAdminPortGetInfo(
  213. IN RAS_SERVER_HANDLE hRasServer,
  214. IN DWORD dwLevel,
  215. IN HANDLE hPort,
  216. OUT LPBYTE * lplpbBuffer
  217. )
  218. {
  219. return ERROR_PROC_NOT_FOUND;
  220. }
  221. static
  222. DWORD APIENTRY
  223. MprAdminRegisterConnectionNotification(
  224. IN MPR_SERVER_HANDLE hMprServer,
  225. IN HANDLE hEventNotification
  226. )
  227. {
  228. return ERROR_PROC_NOT_FOUND;
  229. }
  230. static
  231. DWORD APIENTRY
  232. MprAdminServerConnect(
  233. IN LPWSTR lpwsServerName OPTIONAL,
  234. OUT MPR_SERVER_HANDLE * phMprServer
  235. )
  236. {
  237. return ERROR_PROC_NOT_FOUND;
  238. }
  239. static
  240. VOID APIENTRY
  241. MprAdminServerDisconnect(
  242. IN MPR_SERVER_HANDLE hMprServer
  243. )
  244. {
  245. }
  246. static
  247. DWORD APIENTRY
  248. MprAdminTransportCreate(
  249. IN MPR_SERVER_HANDLE hMprServer,
  250. IN DWORD dwTransportId,
  251. IN LPWSTR lpwsTransportName OPTIONAL,
  252. IN LPBYTE pGlobalInfo,
  253. IN DWORD dwGlobalInfoSize,
  254. IN LPBYTE pClientInterfaceInfo OPTIONAL,
  255. IN DWORD dwClientInterfaceInfoSize OPTIONAL,
  256. IN LPWSTR lpwsDLLPath
  257. )
  258. {
  259. return ERROR_PROC_NOT_FOUND;
  260. }
  261. static
  262. DWORD APIENTRY
  263. MprAdminTransportGetInfo(
  264. IN MPR_SERVER_HANDLE hMprServer,
  265. IN DWORD dwTransportId,
  266. OUT LPBYTE * ppGlobalInfo OPTIONAL,
  267. OUT LPDWORD lpdwGlobalInfoSize OPTIONAL,
  268. OUT LPBYTE * ppClientInterfaceInfo OPTIONAL,
  269. OUT LPDWORD lpdwClientInterfaceInfoSize OPTIONAL
  270. )
  271. {
  272. return ERROR_PROC_NOT_FOUND;
  273. }
  274. static
  275. DWORD APIENTRY
  276. MprAdminTransportSetInfo(
  277. IN MPR_SERVER_HANDLE hMprServer,
  278. IN DWORD dwTransportId,
  279. IN LPBYTE pGlobalInfo OPTIONAL,
  280. IN DWORD dwGlobalInfoSize,
  281. IN LPBYTE pClientInterfaceInfo OPTIONAL,
  282. IN DWORD dwClientInterfaceInfoSize
  283. )
  284. {
  285. return ERROR_PROC_NOT_FOUND;
  286. }
  287. static
  288. DWORD APIENTRY
  289. MprAdminUpgradeUsers(
  290. IN PWCHAR pszServer,
  291. IN BOOL bLocal
  292. )
  293. {
  294. return ERROR_PROC_NOT_FOUND;
  295. }
  296. static
  297. DWORD APIENTRY
  298. MprConfigBufferFree(
  299. IN LPVOID pBuffer
  300. )
  301. {
  302. return ERROR_PROC_NOT_FOUND;
  303. }
  304. static
  305. DWORD APIENTRY
  306. MprConfigInterfaceCreate(
  307. IN HANDLE hMprConfig,
  308. IN DWORD dwLevel,
  309. IN LPBYTE lpbBuffer,
  310. OUT HANDLE* phRouterInterface
  311. )
  312. {
  313. return ERROR_PROC_NOT_FOUND;
  314. }
  315. static
  316. DWORD APIENTRY
  317. MprConfigInterfaceDelete(
  318. IN HANDLE hMprConfig,
  319. IN HANDLE hRouterInterface
  320. )
  321. {
  322. return ERROR_PROC_NOT_FOUND;
  323. }
  324. static
  325. DWORD APIENTRY
  326. MprConfigInterfaceEnum(
  327. IN HANDLE hMprConfig,
  328. IN DWORD dwLevel,
  329. IN OUT LPBYTE* lplpBuffer,
  330. IN DWORD dwPrefMaxLen,
  331. OUT LPDWORD lpdwEntriesRead,
  332. OUT LPDWORD lpdwTotalEntries,
  333. IN OUT LPDWORD lpdwResumeHandle OPTIONAL
  334. )
  335. {
  336. return ERROR_PROC_NOT_FOUND;
  337. }
  338. static
  339. DWORD APIENTRY
  340. MprConfigInterfaceGetHandle(
  341. IN HANDLE hMprConfig,
  342. IN LPWSTR lpwsInterfaceName,
  343. OUT HANDLE* phRouterInterface
  344. )
  345. {
  346. return ERROR_PROC_NOT_FOUND;
  347. }
  348. static
  349. DWORD APIENTRY
  350. MprConfigInterfaceTransportAdd(
  351. IN HANDLE hMprConfig,
  352. IN HANDLE hRouterInterface,
  353. IN DWORD dwTransportId,
  354. IN LPWSTR lpwsTransportName OPTIONAL,
  355. IN LPBYTE pInterfaceInfo,
  356. IN DWORD dwInterfaceInfoSize,
  357. OUT HANDLE* phRouterIfTransport
  358. )
  359. {
  360. return ERROR_PROC_NOT_FOUND;
  361. }
  362. static
  363. DWORD APIENTRY
  364. MprConfigInterfaceTransportEnum(
  365. IN HANDLE hMprConfig,
  366. IN HANDLE hRouterInterface,
  367. IN DWORD dwLevel,
  368. IN OUT LPBYTE* lplpBuffer, // MPR_IFTRANSPORT_0
  369. IN DWORD dwPrefMaxLen,
  370. OUT LPDWORD lpdwEntriesRead,
  371. OUT LPDWORD lpdwTotalEntries,
  372. IN OUT LPDWORD lpdwResumeHandle OPTIONAL
  373. )
  374. {
  375. return ERROR_PROC_NOT_FOUND;
  376. }
  377. static
  378. DWORD APIENTRY
  379. MprConfigInterfaceTransportGetHandle(
  380. IN HANDLE hMprConfig,
  381. IN HANDLE hRouterInterface,
  382. IN DWORD dwTransportId,
  383. OUT HANDLE* phRouterIfTransport
  384. )
  385. {
  386. return ERROR_PROC_NOT_FOUND;
  387. }
  388. static
  389. DWORD APIENTRY
  390. MprConfigInterfaceTransportRemove(
  391. IN HANDLE hMprConfig,
  392. IN HANDLE hRouterInterface,
  393. IN HANDLE hRouterIfTransport
  394. )
  395. {
  396. return ERROR_PROC_NOT_FOUND;
  397. }
  398. static
  399. DWORD APIENTRY
  400. MprConfigServerConnect(
  401. IN LPWSTR lpwsServerName,
  402. OUT HANDLE* phMprConfig
  403. )
  404. {
  405. return ERROR_PROC_NOT_FOUND;
  406. }
  407. static
  408. VOID APIENTRY
  409. MprConfigServerDisconnect(
  410. IN HANDLE hMprConfig
  411. )
  412. {
  413. }
  414. static
  415. DWORD APIENTRY
  416. MprConfigTransportCreate(
  417. IN HANDLE hMprConfig,
  418. IN DWORD dwTransportId,
  419. IN LPWSTR lpwsTransportName OPTIONAL,
  420. IN LPBYTE pGlobalInfo,
  421. IN DWORD dwGlobalInfoSize,
  422. IN LPBYTE pClientInterfaceInfo OPTIONAL,
  423. IN DWORD dwClientInterfaceInfoSize OPTIONAL,
  424. IN LPWSTR lpwsDLLPath,
  425. OUT HANDLE* phRouterTransport
  426. )
  427. {
  428. return ERROR_PROC_NOT_FOUND;
  429. }
  430. static
  431. DWORD APIENTRY
  432. MprConfigTransportDelete(
  433. IN HANDLE hMprConfig,
  434. IN HANDLE hRouterTransport
  435. )
  436. {
  437. return ERROR_PROC_NOT_FOUND;
  438. }
  439. static
  440. DWORD APIENTRY
  441. MprConfigTransportGetHandle(
  442. IN HANDLE hMprConfig,
  443. IN DWORD dwTransportId,
  444. OUT HANDLE* phRouterTransport
  445. )
  446. {
  447. return ERROR_PROC_NOT_FOUND;
  448. }
  449. static
  450. DWORD APIENTRY
  451. MprConfigTransportGetInfo(
  452. IN HANDLE hMprConfig,
  453. IN HANDLE hRouterTransport,
  454. IN OUT LPBYTE* ppGlobalInfo OPTIONAL,
  455. OUT LPDWORD lpdwGlobalInfoSize OPTIONAL,
  456. IN OUT LPBYTE* ppClientInterfaceInfo OPTIONAL,
  457. OUT LPDWORD lpdwClientInterfaceInfoSize OPTIONAL,
  458. IN OUT LPWSTR* lplpwsDLLPath OPTIONAL
  459. )
  460. {
  461. return ERROR_PROC_NOT_FOUND;
  462. }
  463. static
  464. DWORD APIENTRY
  465. MprConfigTransportSetInfo(
  466. IN HANDLE hMprConfig,
  467. IN HANDLE hRouterTransport,
  468. IN LPBYTE pGlobalInfo OPTIONAL,
  469. IN DWORD dwGlobalInfoSize OPTIONAL,
  470. IN LPBYTE pClientInterfaceInfo OPTIONAL,
  471. IN DWORD dwClientInterfaceInfoSize OPTIONAL,
  472. IN LPWSTR lpwsDLLPath OPTIONAL
  473. )
  474. {
  475. return ERROR_PROC_NOT_FOUND;
  476. }
  477. static
  478. USHORT APIENTRY
  479. MprGetUsrParams(
  480. USHORT InfoType,
  481. LPWSTR InBuf,
  482. LPWSTR OutBuf
  483. )
  484. {
  485. return ERROR_PROC_NOT_FOUND;
  486. }
  487. static
  488. DWORD APIENTRY
  489. MprInfoBlockFind(
  490. IN LPVOID lpHeader,
  491. IN DWORD dwInfoType,
  492. OUT LPDWORD lpdwItemSize, // OPTIONAL
  493. OUT LPDWORD lpdwItemCount, // OPTIONAL
  494. OUT LPBYTE* lplpItemData // OPTIONAL
  495. )
  496. {
  497. return ERROR_PROC_NOT_FOUND;
  498. }
  499. static
  500. DWORD APIENTRY
  501. MprInfoBlockSet(
  502. IN LPVOID lpHeader,
  503. IN DWORD dwInfoType,
  504. IN DWORD dwItemSize,
  505. IN DWORD dwItemCount,
  506. IN LPBYTE lpItemData,
  507. OUT LPVOID* lplpNewHeader
  508. )
  509. {
  510. return ERROR_PROC_NOT_FOUND;
  511. }
  512. static
  513. DWORD APIENTRY
  514. MprSetupIpInIpInterfaceFriendlyNameEnum(
  515. IN PWCHAR pwszMachineName,
  516. OUT LPBYTE* lplpBuffer,
  517. OUT LPDWORD lpdwEntriesRead
  518. )
  519. {
  520. return ERROR_PROC_NOT_FOUND;
  521. }
  522. static
  523. DWORD APIENTRY
  524. MprSetupIpInIpInterfaceFriendlyNameFree(
  525. IN LPVOID lpBuffer
  526. )
  527. {
  528. return ERROR_PROC_NOT_FOUND;
  529. }
  530. static
  531. DWORD APIENTRY
  532. RasPrivilegeAndCallBackNumber(
  533. IN BOOL Compress,
  534. IN PRAS_USER_0 pRasUser0
  535. )
  536. {
  537. return ERROR_PROC_NOT_FOUND;
  538. }
  539. static
  540. DWORD APIENTRY
  541. MprConfigInterfaceTransportGetInfo(
  542. IN HANDLE hMprConfig,
  543. IN HANDLE hRouterInterface,
  544. IN HANDLE hRouterIfTransport,
  545. IN OUT LPBYTE* ppInterfaceInfo OPTIONAL,
  546. OUT LPDWORD lpdwInterfaceInfoSize OPTIONAL
  547. )
  548. {
  549. return ERROR_PROC_NOT_FOUND;
  550. }
  551. //
  552. // !! WARNING !! The entries below must be in alphabetical order, and are CASE SENSITIVE (eg lower case comes last!)
  553. //
  554. DEFINE_PROCNAME_ENTRIES(mprapi)
  555. {
  556. DLPENTRY(MprAdminBufferFree)
  557. DLPENTRY(MprAdminConnectionEnum)
  558. DLPENTRY(MprAdminConnectionGetInfo)
  559. DLPENTRY(MprAdminDeregisterConnectionNotification)
  560. DLPENTRY(MprAdminInterfaceCreate)
  561. DLPENTRY(MprAdminInterfaceDelete)
  562. DLPENTRY(MprAdminInterfaceEnum)
  563. DLPENTRY(MprAdminInterfaceGetHandle)
  564. DLPENTRY(MprAdminInterfaceTransportAdd)
  565. DLPENTRY(MprAdminInterfaceTransportRemove)
  566. DLPENTRY(MprAdminIsServiceRunning)
  567. DLPENTRY(MprAdminMIBBufferFree)
  568. DLPENTRY(MprAdminMIBEntryCreate)
  569. DLPENTRY(MprAdminMIBEntryDelete)
  570. DLPENTRY(MprAdminMIBEntryGet)
  571. DLPENTRY(MprAdminMIBEntrySet)
  572. DLPENTRY(MprAdminMIBServerConnect)
  573. DLPENTRY(MprAdminMIBServerDisconnect)
  574. DLPENTRY(MprAdminPortEnum)
  575. DLPENTRY(MprAdminPortGetInfo)
  576. DLPENTRY(MprAdminRegisterConnectionNotification)
  577. DLPENTRY(MprAdminServerConnect)
  578. DLPENTRY(MprAdminServerDisconnect)
  579. DLPENTRY(MprAdminTransportCreate)
  580. DLPENTRY(MprAdminTransportGetInfo)
  581. DLPENTRY(MprAdminTransportSetInfo)
  582. DLPENTRY(MprAdminUpgradeUsers)
  583. DLPENTRY(MprConfigBufferFree)
  584. DLPENTRY(MprConfigInterfaceCreate)
  585. DLPENTRY(MprConfigInterfaceDelete)
  586. DLPENTRY(MprConfigInterfaceEnum)
  587. DLPENTRY(MprConfigInterfaceGetHandle)
  588. DLPENTRY(MprConfigInterfaceTransportAdd)
  589. DLPENTRY(MprConfigInterfaceTransportEnum)
  590. DLPENTRY(MprConfigInterfaceTransportGetHandle)
  591. DLPENTRY(MprConfigInterfaceTransportGetInfo)
  592. DLPENTRY(MprConfigInterfaceTransportRemove)
  593. DLPENTRY(MprConfigServerConnect)
  594. DLPENTRY(MprConfigServerDisconnect)
  595. DLPENTRY(MprConfigTransportCreate)
  596. DLPENTRY(MprConfigTransportDelete)
  597. DLPENTRY(MprConfigTransportGetHandle)
  598. DLPENTRY(MprConfigTransportGetInfo)
  599. DLPENTRY(MprConfigTransportSetInfo)
  600. DLPENTRY(MprGetUsrParams)
  601. DLPENTRY(MprInfoBlockFind)
  602. DLPENTRY(MprInfoBlockSet)
  603. DLPENTRY(MprSetupIpInIpInterfaceFriendlyNameEnum)
  604. DLPENTRY(MprSetupIpInIpInterfaceFriendlyNameFree)
  605. DLPENTRY(RasPrivilegeAndCallBackNumber)
  606. };
  607. DEFINE_PROCNAME_MAP(mprapi)