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:
Adding and deleting User Accounts
NetUserSetInfo
..msdn    Add comment     W32 Constants      Translate this page
Sets the parameters of a user account.
Code examples:
Adding and deleting User Accounts
Declaration:
NET_API_STATUS NetUserSetInfo(
  LPCWSTR servername,
  LPCWSTR username,
  DWORD level,
  LPBYTE buf,
  LPDWORD parm_err
);
FoxPro declaration:
DECLARE INTEGER NetUserSetInfo IN netapi32;
    STRING    servername,;
    STRING    username,;
    INTEGER   lvl,;
    STRING  @ buf,;
    INTEGER   parm_err

Parameters:
servername
[in] Pointer to a constant string that specifies the DNS or NetBIOS name of the remote server on which the function is to execute. If this parameter is NULL, the local computer is used.

username
[in] Pointer to a constant string that specifies the name of the user account for which to set information.

level
[in] Specifies the information level of the data.

buf
[in] Pointer to the buffer that specifies the data. The format of this data depends on the value of the level parameter.

parm_err
[out] Pointer to a value that receives the index of the first member of the user information structure that causes ERROR_INVALID_PARAMETER.
Return value:
If the function succeeds, the return value is NERR_Success (0).
My comment:
Only users or applications having administrative privileges can call the NetUserSetInfo function to change a user"s password.

See also: NetUserGetInfo, NetUserAdd, NetUserDel, NetUserChangePassword.
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2005-02-07 20:01:17
Modified: 2005-02-08 09:40:51
Visited in last 7 days: 18
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.227.127.109)
14 sec.Function: 'TerminateProcess'
Function group: 'Process and Thread'
26 sec.Function: 'NetMessageNameAdd'
Function group: 'Network Management'
39 sec.Example: 'Creating the Save dialog box to specify the drive, directory, and name of a file to save'
52 sec.Function: 'GetCommandLine'
Function group: 'Process and Thread'
1.1 min.Function: 'NetUserGetInfo'
Function group: 'Network Management'
1.32 min.Example: 'Obtaining names of local and global groups for current user (WinNT/XP/2K)'
1.57 min.Function: 'midiOutReset'
Function group: 'Windows Multimedia'
1.8 min.Function: 'CeRapiInit'
Function group: 'Remote Application Programming (RAPI)'
2.02 min.Function: 'waveOutGetVolume'
Function group: 'Windows Multimedia'
2.23 min.Example: 'How to play AVI file on the _screen'
Google
Advertise here!