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.

142 lines
5.5 KiB

  1. /*++
  2. Copyright (c) 2001 Microsoft Corporation
  3. Module Name:
  4. regprint.h
  5. Abstract:
  6. Author:
  7. Jeff Sigman (JeffSi) September 14, 2001
  8. Environment:
  9. User Mode
  10. Revision History:
  11. JeffSi 09/14/01 Created
  12. --*/
  13. #ifndef _REGPRINT_H_
  14. #define _REGPRINT_H_
  15. #define ARRAYSIZE(x) (sizeof(x) / sizeof(x[0]))
  16. #define IsRegStringType(x) (((x) == REG_SZ) || ((x) == REG_EXPAND_SZ) || ((x) == REG_MULTI_SZ))
  17. #define ExtraAllocLen(Type) (IsRegStringType((Type)) ? sizeof(WCHAR) : 0)
  18. #define HKEY_ROOT ((HKEY) 0X7FFFFFFF)
  19. #define RASREGCHK01 \
  20. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\AppleTalk\\Parameters\\Adapters\\NdisWanAtalk"
  21. #define RASREGCHK02 \
  22. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\AsyncMac"
  23. #define RASREGCHK03 \
  24. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\IpFilterDriver"
  25. #define RASREGCHK04 \
  26. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\IpInIp"
  27. #define RASREGCHK05 \
  28. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\IpNat"
  29. #define RASREGCHK06 \
  30. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\NdisTapi"
  31. #define RASREGCHK07 \
  32. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\NdisWan"
  33. #define RASREGCHK08 \
  34. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\NwlnkFlt"
  35. #define RASREGCHK09 \
  36. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\NwlnkFwd"
  37. #define RASREGCHK10 \
  38. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\NwlnkIpx\\Parameters\\Adapters\\NdisWanIpx"
  39. #define RASREGCHK11 \
  40. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\PptpMiniport"
  41. #define RASREGCHK12 \
  42. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Ptilink"
  43. #define RASREGCHK13 \
  44. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\RasAcd"
  45. #define RASREGCHK14 \
  46. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\RasAuto"
  47. #define RASREGCHK15 \
  48. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Rasirda"
  49. #define RASREGCHK16 \
  50. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Rasl2tp"
  51. #define RASREGCHK17 \
  52. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\RasMan"
  53. #define RASREGCHK18 \
  54. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\RasPppoe"
  55. #define RASREGCHK19 \
  56. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Raspti"
  57. #define RASREGCHK20 \
  58. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\RemoteAccess"
  59. #define RASREGCHK21 \
  60. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters\\Adapters\\NdisWanIp"
  61. #define RASREGCHK22 \
  62. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Wanarp"
  63. #define RASREGCHK23 \
  64. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Class\\{4D36E972-E325-11CE-BFC1-08002bE10318}"
  65. #define RASREGCHK24 \
  66. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\DeviceClasses\\{ad498944-762f-11d0-8dcb-00c04fc3358c}"
  67. #define RASREGCHK25 \
  68. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Network\\{4D36E972-E325-11CE-BFC1-08002BE10318}"
  69. #define RASREGCHK26 \
  70. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Network\\{4D36E974-E325-11CE-BFC1-08002BE10318}"
  71. #define RASREGCHK27 \
  72. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Network\\{4D36E975-E325-11CE-BFC1-08002BE10318}"
  73. #define RASREGCHK28 \
  74. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Enum\\ROOT\\LEGACY_NDISTAPI"
  75. #define RASREGCHK29 \
  76. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Enum\\ROOT\\LEGACY_RASACD"
  77. #define RASREGCHK30 \
  78. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Enum\\ROOT\\LEGACY_RASMAN"
  79. #define RASREGCHK31 \
  80. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Enum\\ROOT\\LEGACY_WANARP"
  81. #define RASREGCHK32 \
  82. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Enum\\ROOT\\MS_IRDAMINIPORT"
  83. #define RASREGCHK33 \
  84. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Enum\\ROOT\\MS_IRMODEMMINIPORT"
  85. #define RASREGCHK34 \
  86. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Enum\\ROOT\\MS_L2TPMINIPORT"
  87. #define RASREGCHK35 \
  88. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Enum\\ROOT\\MS_NDISWANATALK"
  89. #define RASREGCHK36 \
  90. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Enum\\ROOT\\MS_NDISWANBH"
  91. #define RASREGCHK37 \
  92. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Enum\\ROOT\\MS_NDISWANIP"
  93. #define RASREGCHK38 \
  94. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Enum\\ROOT\\MS_NDISWANIPX"
  95. #define RASREGCHK39 \
  96. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Enum\\ROOT\\MS_PPPOEMINIPORT"
  97. #define RASREGCHK40 \
  98. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Enum\\ROOT\\MS_PPTPMINIPORT"
  99. #define RASREGCHK41 \
  100. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Enum\\ROOT\\MS_PTIMINIPORT"
  101. #define RASREGCHK42 \
  102. L"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Enum\\ROOT\\SW&{EEAB7790-C514-11D1-B42B-00805FC1270E}"
  103. #define RASREGCHK43 \
  104. L"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Ras"
  105. #define RASREGCHK44 \
  106. L"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Router"
  107. #define RASREGCHK45 \
  108. L"HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Connection Manager"
  109. #define RASREGCHK46 \
  110. L"HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Connection Manager"
  111. typedef struct
  112. {
  113. PWCHAR RootText;
  114. UINT TextLength;
  115. HKEY RootKey;
  116. } REGISTRYROOT, *PREGISTRYROOT;
  117. VOID
  118. PrintRasRegistryKeys(
  119. IN BUFFER_WRITE_FILE* pBuff);
  120. #endif // _REGPRINT_H_