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.

190 lines
4.8 KiB

  1. /*++
  2. Copyright (C) 1998 Microsoft Corporation
  3. --*/
  4. FN_HANDLE_CMD HandleSrvrList;
  5. FN_HANDLE_CMD HandleSrvrHelp;
  6. FN_HANDLE_CMD HandleSrvrContexts;
  7. FN_HANDLE_CMD HandleSrvrDump;
  8. FN_HANDLE_CMD HandleSrvrAddClass;
  9. FN_HANDLE_CMD HandleSrvrAddMscope;
  10. FN_HANDLE_CMD HandleSrvrAddOptiondef;
  11. FN_HANDLE_CMD HandleSrvrAddScope;
  12. FN_HANDLE_CMD HandleSrvrDeleteClass;
  13. FN_HANDLE_CMD HandleSrvrDeleteMscope;
  14. FN_HANDLE_CMD HandleSrvrDeleteOptiondef;
  15. FN_HANDLE_CMD HandleSrvrDeleteOptionvalue;
  16. FN_HANDLE_CMD HandleSrvrDeleteScope;
  17. FN_HANDLE_CMD HandleSrvrDeleteSuperscope;
  18. FN_HANDLE_CMD HandleSrvrDeleteDnsCredentials;
  19. FN_HANDLE_CMD HandleSrvrRedoAuth;
  20. FN_HANDLE_CMD HandleSrvrInitiateReconcile;
  21. FN_HANDLE_CMD HandleSrvrExport;
  22. FN_HANDLE_CMD HandleSrvrImport;
  23. FN_HANDLE_CMD HandleSrvrSetBackupinterval;
  24. FN_HANDLE_CMD HandleSrvrSetBackuppath;
  25. FN_HANDLE_CMD HandleSrvrSetDatabasecleanupinterval;
  26. FN_HANDLE_CMD HandleSrvrSetDatabaseloggingflag;
  27. FN_HANDLE_CMD HandleSrvrSetDatabasename;
  28. FN_HANDLE_CMD HandleSrvrSetDatabasepath;
  29. FN_HANDLE_CMD HandleSrvrSetDatabaserestoreflag;
  30. FN_HANDLE_CMD HandleSrvrSetOptionvalue;
  31. FN_HANDLE_CMD HandleSrvrSetServer;
  32. FN_HANDLE_CMD HandleSrvrSetUserclass;
  33. FN_HANDLE_CMD HandleSrvrSetVendorclass;
  34. FN_HANDLE_CMD HandleSrvrSetDnsCredentials;
  35. FN_HANDLE_CMD HandleSrvrSetAuditlog;
  36. FN_HANDLE_CMD HandleSrvrSetDnsconfig;
  37. FN_HANDLE_CMD HandleSrvrSetDetectconflictretry;
  38. FN_HANDLE_CMD HandleSrvrShowAll;
  39. FN_HANDLE_CMD HandleSrvrShowBindings;
  40. FN_HANDLE_CMD HandleSrvrShowClass;
  41. FN_HANDLE_CMD HandleSrvrShowHelper;
  42. FN_HANDLE_CMD HandleSrvrShowMibinfo;
  43. FN_HANDLE_CMD HandleSrvrShowMscope;
  44. FN_HANDLE_CMD HandleSrvrShowOptiondef;
  45. FN_HANDLE_CMD HandleSrvrShowOptionvalue;
  46. FN_HANDLE_CMD HandleSrvrShowScope;
  47. FN_HANDLE_CMD HandleSrvrShowServer;
  48. FN_HANDLE_CMD HandleSrvrShowServerconfig;
  49. FN_HANDLE_CMD HandleSrvrShowServerstatus;
  50. FN_HANDLE_CMD HandleSrvrShowUserclass;
  51. FN_HANDLE_CMD HandleSrvrShowVendorclass;
  52. FN_HANDLE_CMD HandleSrvrShowDnsCredentials;
  53. FN_HANDLE_CMD HandleSrvrShowVersion;
  54. FN_HANDLE_CMD HandleSrvrShowAuditlog;
  55. FN_HANDLE_CMD HandleSrvrShowDnsconfig;
  56. FN_HANDLE_CMD HandleSrvrShowDetectconflictretry;
  57. DWORD
  58. CreateDumpFile(
  59. IN PWCHAR pwszName,
  60. OUT PHANDLE phFile
  61. );
  62. VOID
  63. CloseDumpFile(
  64. HANDLE hFile
  65. );
  66. DWORD
  67. SrvrDottedStringToIpAddressW(
  68. LPWSTR pwszString
  69. );
  70. LPWSTR
  71. SrvrIpAddressToDottedStringW(
  72. DWORD IpAddress
  73. );
  74. VOID
  75. PrintClassInfo( // print info on a single class
  76. LPDHCP_CLASS_INFO Class
  77. );
  78. VOID
  79. PrintClassInfoArray( // print array of classes
  80. LPDHCP_CLASS_INFO_ARRAY Classes
  81. );
  82. DWORD
  83. SetOptionDataType(
  84. DHCP_OPTION_DATA_TYPE OptionType,
  85. LPTSTR OptionValueString,
  86. LPDHCP_OPTION_DATA_ELEMENT OptionData,
  87. LPWSTR *UnicodeOptionValueString
  88. );
  89. DWORD
  90. SetOptionDataTypeArray(
  91. DHCP_OPTION_DATA_TYPE OptionType,
  92. LPTSTR *OptionValues,
  93. DWORD dwStartCount, //first optionvalue = dwStartCount
  94. DWORD dwEndCount, //last optionvalue = dwEndCount - 1
  95. LPDHCP_OPTION_DATA pOptionData
  96. );
  97. DWORD
  98. _EnumOptions(
  99. IN LPWSTR ServerAddress,
  100. IN DWORD Flags,
  101. IN LPWSTR ClassName,
  102. IN LPWSTR VendorName,
  103. IN OUT DHCP_RESUME_HANDLE *ResumeHandle,
  104. IN DWORD PreferredMaximum,
  105. OUT LPDHCP_OPTION_ARRAY *Options,
  106. OUT DWORD *OptionsRead,
  107. OUT DWORD *OptionsTotal
  108. );
  109. VOID
  110. PrintOptionInfo(
  111. IN LPDHCP_OPTION OptionInfo
  112. );
  113. VOID
  114. PrintOptionValue(
  115. IN LPDHCP_OPTION_DATA OptionValue
  116. );
  117. DWORD
  118. PrintAllOptionValues(
  119. IN LPDHCP_ALL_OPTION_VALUES OptValues
  120. );
  121. DWORD
  122. PrintUserOptionValues(
  123. IN LPDHCP_ALL_OPTION_VALUES OptValues,
  124. IN LPWSTR pwcUser,
  125. IN LPWSTR pwcVendor
  126. );
  127. VOID
  128. PrintOptionValuesArray(
  129. IN LPDHCP_OPTION_VALUE_ARRAY OptValArray
  130. );
  131. VOID
  132. PrintOptionArray(
  133. IN LPDHCP_OPTION_ARRAY OptArray
  134. );
  135. VOID
  136. PrintOptionValue1(
  137. IN LPDHCP_OPTION_VALUE OptVal
  138. );
  139. VOID
  140. PrintAllOptions(
  141. IN LPDHCP_ALL_OPTIONS Options
  142. );
  143. DWORD
  144. SetOptionValue(
  145. IN LPWSTR ServerAddress,
  146. IN DWORD Flags,
  147. IN DHCP_OPTION_ID OptionId,
  148. IN LPWSTR ClassName,
  149. IN LPWSTR VendorName,
  150. IN LPDHCP_OPTION_SCOPE_INFO ScopeInfo,
  151. IN LPDHCP_OPTION_DATA OptionValue
  152. );
  153. DWORD
  154. ShowOptionValues4(
  155. IN LPWSTR pwszServer,
  156. IN LPDHCP_OPTION_SCOPE_INFO ScopeInfo,
  157. IN LPDWORD pdwCount
  158. );
  159. VOID
  160. PrintDhcpAttrib( // print a server attrib
  161. LPDHCP_ATTRIB ServerAttrib
  162. );