IAdminIndexServer::SetSZProperty method
[Indexing Service is no longer supported as of Windows XP and is unavailable for use as of Windows 8. Instead, use Windows Search for client side search and Microsoft Search Server Express for server side search.]
Sets a content index registry value of type REG_SZ, as described in Registry Entries.
Syntax
HRESULT SetSZProperty(
[in] BSTR bstrPropName,
[in] BSTR bstrVal
);
Parameters
-
bstrPropName [in]
-
The name of an existing registry value of type REG_SZ.
-
bstrVal [in]
-
The value to be stored.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
This method does not validate that a property name/value is a valid Indexing Service property. It is the caller's responsibility to verify that the property name and value are valid under the HKLM\System\CurrentControlSet\Control\ContentIndex entries. If bstrPropName exists, its value is set to lVal. Otherwise, the bstrPropName value name is created and set to lVal.
Examples
Set the default Catalog directory
objAdminIS.SetSZProperty("ISAPIDefaultCatalogDirectory","system")
Requirements
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
Minimum supported server |
Windows 2000 Server [desktop apps only] |
End of client support |
Windows 7 |
End of server support |
Windows Server 2008 R2 |
DLL |
|
See also