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.

106 lines
2.0 KiB

  1. //=============================================================================
  2. // Copyright (c) 2001-2002 Microsoft Corporation
  3. // File: 6to4.h
  4. //
  5. // Author: Dave Thaler (dthaler)
  6. //=============================================================================
  7. #ifndef __6TO4_H
  8. #define __6TO4_H
  9. #define IP6TO4_GUID \
  10. { 0xf1efa7e5,0x7169, 0x4ec0, { 0xa6, 0x3a, 0x9b,0x22, 0xa7,0x43, 0xe1, 0x9c } }
  11. #define IP6TO4_VERSION 1
  12. extern GUID g_Ip6to4Guid;
  13. NS_HELPER_START_FN Ip6to4StartHelper;
  14. NS_CONTEXT_DUMP_FN Ip6to4Dump;
  15. FN_HANDLE_CMD Ip6to4HandleReset;
  16. FN_HANDLE_CMD Ip6to4HandleSetInterface;
  17. FN_HANDLE_CMD Ip6to4HandleSetRelay;
  18. FN_HANDLE_CMD Ip6to4HandleSetRouting;
  19. FN_HANDLE_CMD Ip6to4HandleSetState;
  20. FN_HANDLE_CMD Ip6to4HandleShowInterface;
  21. FN_HANDLE_CMD Ip6to4HandleShowRelay;
  22. FN_HANDLE_CMD Ip6to4HandleShowRouting;
  23. FN_HANDLE_CMD Ip6to4HandleShowState;
  24. BOOL
  25. GetString(
  26. IN HKEY hKey,
  27. IN LPCTSTR lpName,
  28. IN PWCHAR pwszBuff,
  29. IN ULONG ulLength);
  30. ULONG
  31. GetInteger(
  32. IN HKEY hKey,
  33. IN LPCTSTR lpName,
  34. IN ULONG ulDefault);
  35. DWORD
  36. SetString(
  37. IN HKEY hKey,
  38. IN LPCTSTR lpName,
  39. IN PWCHAR pwcValue);
  40. DWORD
  41. SetInteger(
  42. IN HKEY hKey,
  43. IN LPCTSTR lpName,
  44. IN ULONG ulValue);
  45. DWORD
  46. Ip6to4PokeService();
  47. typedef enum {
  48. VAL_DEFAULT = 0,
  49. VAL_AUTOMATIC,
  50. VAL_ENABLED,
  51. VAL_DISABLED
  52. } STATE;
  53. extern TOKEN_VALUE rgtvEnums[4];
  54. #define KEY_GLOBAL L"System\\CurrentControlSet\\Services\\6to4\\Config"
  55. #define KEY_INTERFACES L"System\\CurrentControlSet\\Services\\6to4\\Interfaces"
  56. #define KEY_IPV6_INTERFACES L"System\\CurrentControlSet\\Services\\Tcpip6\\Parameters\\Interfaces"
  57. DWORD
  58. SetInteger(
  59. IN HKEY hKey,
  60. IN LPCTSTR lpName,
  61. IN ULONG ulValue
  62. );
  63. ULONG
  64. GetInteger(
  65. IN HKEY hKey,
  66. IN LPCTSTR lpName,
  67. IN ULONG ulDefault
  68. );
  69. DWORD
  70. SetString(
  71. IN HKEY hKey,
  72. IN LPCTSTR lpName,
  73. IN PWCHAR pwcValue
  74. );
  75. BOOL
  76. GetString(
  77. IN HKEY hKey,
  78. IN LPCTSTR lpName,
  79. IN PWCHAR pwszBuff,
  80. IN ULONG ulLength
  81. );
  82. extern PWCHAR pwszStateString[];
  83. #endif