 |
NetUserChangePassword ..msdn Add comment W32 Constants Translate this page |
 |
 |
Changes user`s password for a specified network server or domain.
|
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
NET_API_STATUS NetUserChangePassword(
LPCWSTR domainname,
LPCWSTR username,
LPCWSTR oldpassword,
LPCWSTR newpassword
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER NetUserChangePassword IN netapi32;
STRING domainname,;
STRING username,;
STRING oldpassword,;
STRING newpassword
|
 |
 |
 |
| Parameters: |
 |
domainname
[in] Pointer to a constant string that specifies the DNS or NetBIOS name of a remote server or domain on which the function is to execute. If this parameter is NULL, the logon domain of the caller is used.
username
[in] Pointer to a constant string that specifies a user name. The NetUserChangePassword function changes the password for the specified user.
oldpassword
[in] Pointer to a constant string that specifies the user"s old password.
newpassword
[in] Pointer to a constant string that specifies the user"s new password. |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is NERR_Success (0). |
 |
 |
| My comment: |
 |
For this function as for other NetUser functions, convert string input parameters to Unicode. Requires Windows XP, Windows 2000 Professional, or Windows NT Workstation.
The NetUserSetInfo can change passwords too when called with levels 21 and 1003.
See also: NetUserSetInfo, NetUserGetInfo. |
 |
 |
| Word Index links for the NetUserChangePassword : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2005-02-08 09:34:48 | | Modified: | 2005-02-08 09:46:15 | Visited in last 7 days: 11 |