ChangePassword
Purpose
The ChangePassword function changes the password of the user.
Requirements
Only the user or a super user can change the password.
The name of the user must be set in the object. OldPassword must be the current password for the user unless the logged on user is a super user.
Note: If the logged on user is a super user, OldPassword is not required to change any user’s password.
Syntax
HRESULT ChangePassword(
LPCTSTR OldPassword,
LPCTSTR NewPassword);
Argument |
In/Out |
Description |
OldPassword |
In |
Password assigned to the user. |
NewPassword |
In |
New Password. |