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.

154 lines
2.7 KiB

  1. /*
  2. Copyright (c) 1997, Microsoft Corporation, all rights reserved
  3. File:
  4. bltincps.h
  5. Description:
  6. History:
  7. Dec 19, 1997: Vijay Baliga created original version.
  8. */
  9. #ifndef _BLTINCPS_H_
  10. #define _BLTINCPS_H_
  11. // RasBacp
  12. LONG_PTR
  13. BacpGetInfo(
  14. IN DWORD dwProtocolId,
  15. OUT PPPCP_INFO* pCpInfo
  16. );
  17. // RasIpCp
  18. LONG_PTR
  19. IpcpGetInfo(
  20. IN DWORD dwProtocolId,
  21. OUT PPPCP_INFO* pCpInfo
  22. );
  23. LONG_PTR
  24. IpcpDhcpInform(
  25. IN VOID* pwb,
  26. IN VOID* pDhcpInform
  27. );
  28. VOID
  29. RasSrvrDhcpCallback(
  30. IN ULONG nboIpAddr
  31. );
  32. // RasCbcp
  33. LONG_PTR
  34. CbCPGetInfo(
  35. IN DWORD dwProtocolId,
  36. OUT PPPCP_INFO* pCpInfo
  37. );
  38. // RasCcp
  39. LONG_PTR
  40. CcpGetInfo(
  41. IN DWORD dwProtocolId,
  42. OUT PPPCP_INFO* pCpInfo
  43. );
  44. // RasChap
  45. LONG_PTR
  46. ChapGetInfo(
  47. IN DWORD dwProtocolId,
  48. OUT PPPCP_INFO* pCpInfo
  49. );
  50. // RasEap
  51. LONG_PTR
  52. EapGetInfo(
  53. IN DWORD dwProtocolId,
  54. OUT PPPCP_INFO* pCpInfo
  55. );
  56. // RasIpxCp
  57. LONG_PTR
  58. IpxCpGetInfo(
  59. IN DWORD dwProtocolId,
  60. OUT PPPCP_INFO* pCpInfo
  61. );
  62. // RasNbfCp
  63. LONG_PTR
  64. NbfCpGetInfo(
  65. IN DWORD dwProtocolId,
  66. OUT PPPCP_INFO* pCpInfo
  67. );
  68. // RasPap
  69. LONG_PTR
  70. PapGetInfo(
  71. IN DWORD dwProtocolId,
  72. OUT PPPCP_INFO* pCpInfo
  73. );
  74. // RasSPap
  75. LONG_PTR
  76. SPAPGetInfo(
  77. IN DWORD dwProtocolId,
  78. OUT PPPCP_INFO* pCpInfo
  79. );
  80. // RasAtcp
  81. LONG_PTR
  82. AtcpGetInfo(
  83. IN DWORD dwProtocolId,
  84. OUT PPPCP_INFO* pCpInfo
  85. );
  86. // BuiltInCps
  87. typedef struct _BUILT_IN_CP
  88. {
  89. DWORD dwProtocolId; // The Protocol Id for the CP
  90. PROC pRasCpGetInfo; // The RasCpGetInfo for the CP
  91. CHAR* szNegotiateCp; // Value in the registry
  92. BOOL fLoad; // Load this CP
  93. } BUILT_IN_CP;
  94. #ifdef ALLOC_BLTINCPS_GLOBALS
  95. BUILT_IN_CP BuiltInCps[] =
  96. {
  97. {PPP_IPCP_PROTOCOL, IpcpGetInfo, "NegotiateIpCp", TRUE},
  98. {PPP_BACP_PROTOCOL, BacpGetInfo, "NegotiateBacp", TRUE},
  99. {PPP_CBCP_PROTOCOL, CbCPGetInfo, "NegotiateCbCP", TRUE},
  100. {PPP_CCP_PROTOCOL, CcpGetInfo, "NegotiateCcp", TRUE},
  101. {PPP_EAP_PROTOCOL, EapGetInfo, "NegotiateEap", TRUE},
  102. {PPP_IPXCP_PROTOCOL, IpxCpGetInfo, "NegotiateIpx", TRUE},
  103. {PPP_PAP_PROTOCOL, PapGetInfo, "NegotiatePap", TRUE},
  104. {PPP_ATCP_PROTOCOL, AtcpGetInfo, "NegotiateAtcp", TRUE},
  105. {PPP_SPAP_NEW_PROTOCOL, SPAPGetInfo, "NegotiateSPAP", TRUE}
  106. };
  107. #else // !ALLOC_BLTINCPS_GLOBALS
  108. extern BUILT_IN_CP BuiltInCps[];
  109. #endif // ALLOC_BLTINCPS_GLOBALS
  110. #define NUM_BUILT_IN_CPS (sizeof(BuiltInCps)/sizeof(BUILT_IN_CP))
  111. #endif // #ifndef _BLTINCPS_H_