IADsUser::ChangePassword

Changes the user's password from the specified old value to a new value.

HRESULT IADsUser::ChangePassword(
  BSTR bstrOldPassword,  //The current password
  BSTR bstNewPassword    //The new password
);
 

Parameter

bstrOldPassword
[in] The password as it currently exists.
BstrNewPassword
[out] The new password to use.

Return Values

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

S_OK
The ChangePassword command has been successfully issued.

QuickInfo

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

See Also

ADSI User Object