Once you have a valid handle to a key, you can use the ABO methods to manipulate that key's data entries. When creating new sites and virtual directories, remember this rule when naming them.
In the preceding examples, the names LM, W3SVC, and VDir1 must each be less than METADATA_MAX_NAME_LEN, but their combined path, /LM/W3SVC/2/ROOT/VDir1, can be longer, though it is not recommended when using a long path name in the OpenKey method. This applies to each node name separately, not the entire path. For example, if you have opened a handle to /LM/W3SVC/2, you can then use this handle and the relative path, /ROOT/VDir1, with the OpenKey method to get a handle to the key /LM/W3SVC/2/ROOT/VDir1.Įach key name cannot be longer than the METADATA_MAX_NAME_LEN constant. You can also use a handle to any key as a reference point to its subkeys.
You can use the OpenKey method to get a handle to a key in the metabase by providing the key's path relative to this handle, such as /LM/W3SVC/2, the path to the key for the second Web server. When the metabase is initialized at startup, a handle to the metabase called METADATA_MASTER_ROOT_HANDLE is automatically opened with read-only permissions. To connect to a key in the metabase, ABO uses handles. Class types are similar to IIS admin objects. A KeyType property is set on each key to identify its class type. Handles to KeysĪBO views the metabase as a collection of keys and data. It is recommended that you read IIS Configuration using the Metabase and Metabase Structure before connectin to the IIS metabase through ABO. Active Base Objects (ABO) connect to nodes in the metabase to make configuration changes.