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.

100 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. net\routing\ip\ipinip\ipipcfg.h
  5. Abstract:
  6. The configuration DLL for ipinip
  7. Revision History:
  8. Amritansh Raghav
  9. --*/
  10. #ifndef __IPIPCFG_H__
  11. #define __IPIPCFG_H__
  12. #define REG_VAL_DEFGATEWAY TEXT("DefaultGateway")
  13. #define REG_VAL_ENABLEDHCP TEXT("EnableDHCP")
  14. #define REG_VAL_IPADDRESS TEXT("IPAddress")
  15. #define REG_VAL_NTECONTEXTLIST TEXT("NTEContextList")
  16. #define REG_VAL_SUBNETMASK TEXT("SubnetMask")
  17. #define REG_VAL_ZEROBCAST TEXT("UseZeroBroadcast")
  18. #define IPIP_PREFIX_STRING TEXT("IpInIp")
  19. #define IPIP_PREFIX_STRING_U L"IpInIp"
  20. //
  21. // used for notifications
  22. //
  23. IPINIP_NOTIFICATION g_inIpInIpMsg;
  24. OVERLAPPED g_IpInIpOverlapped;
  25. DWORD
  26. OpenIpIpKey(
  27. VOID
  28. );
  29. VOID
  30. CloseIpIpKey(
  31. VOID
  32. );
  33. VOID
  34. DeleteIpIpKeyAndInfo(
  35. IN PICB pIcb
  36. );
  37. DWORD
  38. CreateIpIpKeyAndInfo(
  39. IN PICB pIcb
  40. );
  41. DWORD
  42. AddInterfaceToIpInIp(
  43. IN GUID *pGuid,
  44. IN PICB picb
  45. );
  46. DWORD
  47. DeleteInterfaceFromIpInIp(
  48. PICB picb
  49. );
  50. DWORD
  51. SetIpInIpInfo(
  52. PICB picb,
  53. PRTR_INFO_BLOCK_HEADER pInterfaceInfo
  54. );
  55. DWORD
  56. GetInterfaceIpIpInfo(
  57. IN PICB picb,
  58. IN PRTR_TOC_ENTRY pToc,
  59. IN PBYTE pbDataPtr,
  60. IN OUT PRTR_INFO_BLOCK_HEADER pInfoHdr,
  61. IN OUT PDWORD pdwInfoSize
  62. );
  63. DWORD
  64. PostIpInIpNotification(
  65. VOID
  66. );
  67. VOID
  68. HandleIpInIpEvent(
  69. VOID
  70. );
  71. #endif //__IPIPCFG_H__