Using Win32 functions in Visual FoxPro Image Gallery
Network Management
..msdn
NetApiBufferFree
NetApiBufferSize
NetConnectionEnum
NetFileClose
NetFileEnum
NetFileGetInfo
NetGetDCName
NetGroupEnum
NetLocalGroupEnum
NetMessageBufferSend
NetMessageNameAdd
NetMessageNameDel
NetMessageNameEnum
NetScheduleJobAdd
NetScheduleJobDel
NetScheduleJobEnum
NetServerEnum
NetServerGetInfo
NetSessionEnum
NetShareAdd
NetShareDel
NetShareEnum
NetShareSetInfo
NetUserAdd
NetUserChangePassword
NetUserDel
NetUserEnum
NetUserGetGroups
NetUserGetInfo
NetUserGetLocalGroups
NetUserSetInfo
NetWkstaGetInfo
NetWkstaTransportEnum
NetWkstaUserEnum
Code examples:
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:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2005-02-08 09:34:48
Modified: 2005-02-08 09:46:15
Visited in last 7 days: 11
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.145.117.60)
18 sec.Function: 'GdipResetWorldTransform'
Function group: 'GDI+ Graphics'
37 sec.Example: 'Custom GDI+ class'
59 sec.Article: 'Sending SMTP Messages in Visual FoxPro Applications, Part 2 '
1.38 min.Gallery
1.72 min.Function: 'CeCopyFile'
Function group: 'Remote Application Programming (RAPI)'
4.97 min.
Function group: 'Windows Multimedia'
Google
Advertise here!