The command line version is:
NET USER <username> <newpassword>
For the API call necessary from C++, you'd be better off posting your question to the programming groups.
--
Doug Knox, MS-MVP Windows Media Center\Windows Powered Smart Display\Security
Win 95/98/Me/XP Tweaks and Fixes
http://www.dougknox.com
--------------------------------
Per user Group Policy Restrictions for XP Home and XP Pro
http://www.dougknox.com/xp/utils/xp_securityconsole.htm
--------------------------------
Please reply only to the newsgroup so all may benefit.
Unsolicited e-mail is not answered.
"Cyrus" <(E-Mail Removed)> wrote in message news:C7415985-2DBD-45B8-A609-(E-Mail Removed)...
> In either C++ or from the command line. I need the commands for both XP Home
> and XP Pro, which appear to use different dialogs for the set password
> function.