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.

106 lines
1.8 KiB

  1. /*
  2. Copyright (c) 1998, Microsoft Corporation, all rights reserved
  3. Description:
  4. History:
  5. */
  6. #ifndef _RASSRVR_H_
  7. #define _RASSRVR_H_
  8. #include "rasiphlp.h"
  9. typedef DWORD (MPRADMINGETIPADDRESSFORUSER)(
  10. IN WCHAR* wszUserName,
  11. IN WCHAR* wszPortName,
  12. IN OUT IPADDR* pnboIpAddress,
  13. OUT BOOL* fNotifyDll
  14. );
  15. typedef VOID (MPRADMINRELEASEIPADDRESS)(
  16. IN WCHAR* wszUserName,
  17. IN WCHAR* wszPortName,
  18. IN OUT IPADDR* pnboIpAddress
  19. );
  20. typedef struct IPINFO
  21. {
  22. IPADDR nboWINSAddress;
  23. IPADDR nboWINSAddressBackup;
  24. IPADDR nboDNSAddress;
  25. IPADDR nboDNSAddressBackup;
  26. IPADDR nboServerIpAddress;
  27. IPADDR nboServerSubnetMask;
  28. } IPINFO;
  29. extern BOOL RasSrvrRunning;
  30. DWORD
  31. RasSrvrInitialize(
  32. IN MPRADMINGETIPADDRESSFORUSER* pfnMprGetAddress,
  33. IN MPRADMINRELEASEIPADDRESS* pfnMprReleaseAddress
  34. );
  35. VOID
  36. RasSrvrUninitialize(
  37. VOID
  38. );
  39. DWORD
  40. RasSrvrStart(
  41. VOID
  42. );
  43. VOID
  44. RasSrvrStop(
  45. IN BOOL fParametersChanged
  46. );
  47. DWORD
  48. RasSrvrAcquireAddress(
  49. IN HPORT hPort,
  50. IN IPADDR nboIpAddress,
  51. OUT IPADDR* pnboIpAddressAllocated,
  52. IN WCHAR* wszUserName,
  53. IN WCHAR* wszPortName
  54. );
  55. VOID
  56. RasSrvrReleaseAddress(
  57. IN IPADDR nboIpAddress,
  58. IN WCHAR* wszUserName,
  59. IN WCHAR* wszPortName,
  60. IN BOOL fDeregister
  61. );
  62. DWORD
  63. RasSrvrActivateIp(
  64. IN IPADDR nboIpAddress,
  65. IN DWORD dwUsage
  66. );
  67. DWORD
  68. RasSrvrQueryServerAddresses(
  69. IN OUT IPINFO* pIpInfo
  70. );
  71. VOID
  72. RasSrvrDhcpCallback(
  73. IN IPADDR nboIpAddr
  74. );
  75. VOID
  76. RasSrvrEnableRouter(
  77. BOOL fEnable
  78. );
  79. VOID
  80. RasSrvrAdapterUnmapped(
  81. VOID
  82. );
  83. #endif // #ifndef _RASSRVR_H_