IADsServiceOperations::SetPassword

Sets the password for the account used by the service manager when creating the security context for this service.

HRESULT IADsServiceOperations::SetPassword(
  BSTR bstrNewPassword  //The new password.
);
 

Parameter

bstrNewPassword
[in] The password to be stored as the new password.

Return Values

This method supports the standard return values E_FAIL and E_UNEXPECTED, as well as the following:

S_OK
The SetPassword command has been successfully issued.

Remarks

The property IADsService::get_ServiceAccountName identifies the account for which this password is to be set.

QuickInfo

  Windows NT: Use version 4.0 and later.
  Windows CE: Unsupported.
  Header: Declared in iads.h.

See Also

IADsService, ADSI Service Object