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.

244 lines
13 KiB

  1. //========================================================================
  2. // Copyright (C) 1997 Microsoft Corporation
  3. // Author: RameshV
  4. // Description: This file has been generated. Pl look at the .c file
  5. //========================================================================
  6. //DOC DhcpDsCreateOptionDef tries to create an option definition in the DS with the
  7. //DOC given attributes. The option must not exist in the DS prior to this call.
  8. //DOC There are requirements on the fmt used in the DS.
  9. DWORD
  10. DhcpDsCreateOptionDef( // create option definition
  11. IN OUT LPSTORE_HANDLE hDhcpC, // container for dhcp objects
  12. IN OUT LPSTORE_HANDLE hServer, // handle to server object in DS
  13. IN DWORD Reserved, // must be zero, future use
  14. IN LPWSTR Name, // option name
  15. IN LPWSTR Comment, // OPTIONAL option comment
  16. IN LPWSTR ClassName, // OPTIONAL unused, opt class
  17. IN DWORD OptId, // # between 0-255 per DHCP draft
  18. IN DWORD OptType, // some option flags
  19. IN LPBYTE OptVal, // default option value
  20. IN DWORD OptLen // # of bytes of above
  21. ) ;
  22. //DOC DhcpDsModifyOptionDef tries to modify an existing optdef in the DS with the
  23. //DOC given attributes. The option must exist in the DS prior to this call.
  24. //DOC There are requirements on the fmt used in the DS.
  25. DWORD
  26. DhcpDsModifyOptionDef( // modify option definition
  27. IN OUT LPSTORE_HANDLE hDhcpC, // container for dhcp objects
  28. IN OUT LPSTORE_HANDLE hServer, // handle to server object in DS
  29. IN DWORD Reserved, // must be zero, future use
  30. IN LPWSTR Name, // option name
  31. IN LPWSTR Comment, // OPTIONAL option comment
  32. IN LPWSTR ClassName, // OPTIONAL unused, opt class
  33. IN DWORD OptId, // # between 0-255 per DHCP draft
  34. IN DWORD OptType, // some option flags
  35. IN LPBYTE OptVal, // default option value
  36. IN DWORD OptLen // # of bytes of above
  37. ) ;
  38. //DOC DhcpDsEnumOptionDefs gets the list of options defined for the given class.
  39. //DOC Currently, class is ignored as option defs dont have classes associated.
  40. //DOC There are requirements on the fmt used in the DS.
  41. DWORD
  42. DhcpDsEnumOptionDefs( // enum list of opt defs in DS
  43. IN OUT LPSTORE_HANDLE hDhcpC, // container for dhcp objects
  44. IN OUT LPSTORE_HANDLE hServer, // handle to server object in DS
  45. IN DWORD Reserved, // must be zero, future use
  46. IN LPWSTR ClassName, // OPTIONAL, unused.
  47. IN BOOL IsVendor, // vendor only? non-vendor only?
  48. OUT LPDHCP_OPTION_ARRAY *RetOptArray // allocated and fill this.
  49. ) ;
  50. //DOC DhcpDsDeleteOptionDef deletes an option definition in the DS based on the option id.
  51. //DOC Note that the ClassName field is currently ignored.
  52. //DOC No error is reported if the option is not present in the DS.
  53. //DOC
  54. DWORD
  55. DhcpDsDeleteOptionDef( // enum list of opt defs in DS
  56. IN OUT LPSTORE_HANDLE hDhcpC, // container for dhcp objects
  57. IN OUT LPSTORE_HANDLE hServer, // handle to server object in DS
  58. IN DWORD Reserved, // must be zero, future use
  59. IN LPWSTR ClassName, // OPTIONAL, unused.
  60. IN DWORD OptId
  61. ) ;
  62. //DOC DhcpDsDeleteOptionDef deletes an option definition in the DS based on the option id.
  63. //DOC Note that the ClassName field is currently ignored.
  64. //DOC No error is reported if the option is not present in the DS.
  65. //DOC
  66. DWORD
  67. DhcpDsGetOptionDef( // enum list of opt defs in DS
  68. IN OUT LPSTORE_HANDLE hDhcpC, // container for dhcp objects
  69. IN OUT LPSTORE_HANDLE hServer, // handle to server object in DS
  70. IN DWORD Reserved, // must be zero, future use
  71. IN LPWSTR ClassName, // OPTIONAL, unused.
  72. IN DWORD OptId,
  73. OUT LPDHCP_OPTION *OptInfo
  74. ) ;
  75. //DOC DhcpDsSetOptionValue sets the required option value in the DS.
  76. //DOC Note that if the option existed earlier, it is overwritten. Also, the
  77. //DOC option definition is not checked against -- so there need not be an
  78. //DOC option type specified.
  79. //DOC Also, this function works assuming that the option has to be written
  80. //DOC to the current object in DS as given by hObject ptr.
  81. //DOC There are requirements on the fmt used in the DS.
  82. DWORD
  83. DhcpDsSetOptionValue( // set option value
  84. IN OUT LPSTORE_HANDLE hDhcpC, // container for dhcp objects
  85. IN OUT LPSTORE_HANDLE hObject, // handle to object in DS
  86. IN DWORD Reserved, // must be zero, future use
  87. IN LPWSTR ClassName, // name of class for this opt
  88. IN LPWSTR UserClass, // name of user class for this opt
  89. IN DWORD OptId, // option id
  90. IN LPDHCP_OPTION_DATA OptData // what is the option
  91. ) ;
  92. //DOC DhcpDsRemoveOptionValue deletes the required option value from DS
  93. //DOC the specific option value should exist in DS, else error.
  94. //DOC Also, this function works assuming that the option has been written
  95. //DOC to the current object in DS as given by hObject ptr.
  96. //DOC There are requirements on the fmt used in the DS.
  97. DWORD
  98. DhcpDsRemoveOptionValue( // remove option value
  99. IN OUT LPSTORE_HANDLE hDhcpC, // container for dhcp objects
  100. IN OUT LPSTORE_HANDLE hObject, // handle to object in DS
  101. IN DWORD Reserved, // must be zero, future use
  102. IN LPWSTR ClassName, // name of class for this opt
  103. IN LPWSTR UserClass, // user class for opt
  104. IN DWORD OptId // option id
  105. ) ;
  106. //DOC DhcpDsGetOptionValue retrieves the particular option value in question.
  107. //DOC This function returns ERROR_DDS_OPTION_DOES_NOT_EXIST if the option was
  108. //DOC not found.
  109. DWORD
  110. DhcpDsGetOptionValue( // get option value frm DS
  111. IN OUT LPSTORE_HANDLE hDhcpC, // container for dhcp objects
  112. IN OUT LPSTORE_HANDLE hObject, // handle to object in DS
  113. IN DWORD Reserved, // must be zero, future use
  114. IN LPWSTR ClassName, // name of class for this opt
  115. IN LPWSTR UserClass, // user class this opt belongs 2
  116. IN DWORD OptId, // option id
  117. OUT LPDHCP_OPTION_VALUE *OptionValue // allocate and fill this ptr
  118. ) ;
  119. //DOC DhcpDsEnumOptionValues enumerates the list of options for a given class
  120. //DOC Also, depending on whether IsVendor is TRUE or false, this function enumerates
  121. //DOC only vendor specific or only non-vendor-specific options respectively.
  122. //DOC This function gets the whole bunch in one shot.
  123. DWORD
  124. DhcpDsEnumOptionValues( // get option values from DS
  125. IN OUT LPSTORE_HANDLE hDhcpC, // container for dhcp objects
  126. IN OUT LPSTORE_HANDLE hObject, // handle to object in DS
  127. IN DWORD Reserved, // must be zero, future use
  128. IN LPWSTR ClassName, // name of class for this opt
  129. IN LPWSTR UserClass, // for which user class?
  130. IN DWORD IsVendor, // enum only vendor/non-vendor?
  131. OUT LPDHCP_OPTION_VALUE_ARRAY *OptionValues // allocate option values..
  132. ) ;
  133. //DOC DhcpDsCreateClass creates a given class in the DS. The class should not
  134. //DOC exist prior to this in the DS (if it does, this fn returns error
  135. //DOC ERROR_DDS_CLASS_EXISTS).
  136. DWORD
  137. DhcpDsCreateClass( // create this class in the ds
  138. IN OUT LPSTORE_HANDLE hDhcpC, // container for dhcp objects
  139. IN OUT LPSTORE_HANDLE hServer, // handle to server object in DS
  140. IN DWORD Reserved, // must be zero, future use
  141. IN LPWSTR ClassName, // name of class..
  142. IN LPWSTR ClassComment, // comment for this class
  143. IN LPBYTE ClassData, // the bytes that form the class data
  144. IN DWORD ClassDataLen, // # of bytes of above
  145. IN BOOL IsVendor // is this a vendor class?
  146. ) ;
  147. //DOC DhcpDsDeleteClass deletes the class from off the DS, and returns an error
  148. //DOC if the class did not exist in the DS for hte given server object.
  149. DWORD
  150. DhcpDsDeleteClass( // delete the class from the ds
  151. IN OUT LPSTORE_HANDLE hDhcpC, // container for dhcp objects
  152. IN OUT LPSTORE_HANDLE hServer, // handle to server object in DS
  153. IN DWORD Reserved, // must be zero, future use
  154. IN LPWSTR ClassName // name of class..
  155. ) ;
  156. //DOC this is not yet implemented.
  157. DWORD
  158. DhcpDsModifyClass( // modify a class in the DS
  159. IN OUT LPSTORE_HANDLE hDhcpC, // container for dhcp objects
  160. IN OUT LPSTORE_HANDLE hServer, // handle to server object in DS
  161. IN DWORD Reserved, // must be zero, future use
  162. IN LPWSTR ClassName, // name of class -- this is the key
  163. IN LPWSTR ClassComment, // comment for this class
  164. IN LPBYTE ClassData, // the bytes that form the class data
  165. IN DWORD ClassDataLen // # of bytes of above
  166. ) ;
  167. //DOC DhcpDsGetClassInfo get information on a class by doing a search based
  168. //DOC on either the class name or the class data fields. ClassName is guaranteed
  169. //DOC to be unique. ClassData may/maynot be unique. The search is done in the DS,
  170. //DOC so things are likely to be a lot slower than they should be.
  171. //DOC This should be fixed by doing some intelligent searches.
  172. //DOC Note that the hServer and the hDhcpC handles should point to the right objects.
  173. //DOC
  174. DWORD
  175. DhcpDsGetClassInfo( // get class details for given class
  176. IN OUT LPSTORE_HANDLE hDhcpC, // container for dhcp objects
  177. IN OUT LPSTORE_HANDLE hServer, // handle to server object in DS
  178. IN DWORD Reserved, // must be zero, future use
  179. IN LPWSTR ClassName, // OPTIONAL search on class name
  180. IN LPBYTE ClassData, // OPTIONAL srch on class data
  181. IN DWORD ClassDataLen, // # of bytes of ClassData
  182. OUT LPDHCP_CLASS_INFO *ClassInfo // allocate and copy ptr
  183. ) ;
  184. //DOC DhcpDsEnumClasses enumerates the classes for a given server (as specified
  185. //DOC via the hServer object.)
  186. //DOC The memory for Classes is allocated by this function.
  187. DWORD
  188. DhcpDsEnumClasses( // get the list of classes frm ds
  189. IN OUT LPSTORE_HANDLE hDhcpC, // container for dhcp objects
  190. IN OUT LPSTORE_HANDLE hServer, // handle to server object in DS
  191. IN DWORD Reserved, // must be zero, future use
  192. OUT LPDHCP_CLASS_INFO_ARRAY *Classes // allocate memory for this
  193. ) ;
  194. //DOC This function retrieves all the option valuesdefined for this object frm th dS
  195. DWORD
  196. DhcpDsGetAllOptionValues(
  197. IN LPSTORE_HANDLE hDhcpC,
  198. IN LPSTORE_HANDLE hObject,
  199. IN DWORD Reserved,
  200. OUT LPDHCP_ALL_OPTION_VALUES *OptionValues
  201. ) ;
  202. //DOC This function retrieves all the optiosn defined for this server.. frm the DS
  203. DWORD
  204. DhcpDsGetAllOptions(
  205. IN LPSTORE_HANDLE hDhcpC,
  206. IN LPSTORE_HANDLE hServer,
  207. IN DWORD Reserved,
  208. OUT LPDHCP_ALL_OPTIONS *Options
  209. ) ;
  210. //========================================================================
  211. // end of file
  212. //========================================================================