Compartir a través de


IScopeAdm::SetLogonInfo 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 the logon password pair for establishing credentials for scopes with universal naming convention (UNC) paths.

Syntax

HRESULT SetLogonInfo(
  [in] BSTR bstrLogon,
  [in] BSTR bstrPassword
);

Parameters

bstrLogon [in]

The logon name used to log on to the scope's UNC path.

bstrPassword [in]

The logon password, which must be a valid string. A null password is represented by a null string.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

Any failures cause an error object to be created.

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

See also

IScopeAdm