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.

113 lines
2.2 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. VAL_MAXIMUM
  53. } STATE;
  54. extern TOKEN_VALUE rgtvEnums[4];
  55. #define KEY_GLOBAL L"System\\CurrentControlSet\\Services\\6to4\\Config"
  56. #define KEY_INTERFACES L"System\\CurrentControlSet\\Services\\6to4\\Interfaces"
  57. #define KEY_IPV6_INTERFACES L"System\\CurrentControlSet\\Services\\Tcpip6\\Parameters\\Interfaces"
  58. DWORD
  59. SetInteger(
  60. IN HKEY hKey,
  61. IN LPCTSTR lpName,
  62. IN ULONG ulValue
  63. );
  64. ULONG
  65. GetInteger(
  66. IN HKEY hKey,
  67. IN LPCTSTR lpName,
  68. IN ULONG ulDefault
  69. );
  70. DWORD
  71. SetString(
  72. IN HKEY hKey,
  73. IN LPCTSTR lpName,
  74. IN PWCHAR pwcValue
  75. );
  76. BOOL
  77. GetString(
  78. IN HKEY hKey,
  79. IN LPCTSTR lpName,
  80. IN PWCHAR pwszBuff,
  81. IN ULONG ulLength
  82. );
  83. DWORD
  84. ResetKey(
  85. IN HKEY hKey,
  86. IN PWCHAR pwcSubKey
  87. );
  88. extern PWCHAR pwszStateString[];
  89. #endif