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
NetUserAdd
..msdn    Add comment     W32 Constants      Translate this page
Adds a user account and assigns a password and privilege level.
Code examples:
Adding and deleting User Accounts
Declaration:
NET_API_STATUS NetUserAdd(
  LMSTR servername,
  DWORD level,
  LPBYTE buf,
  LPDWORD parm_err
);
FoxPro declaration:
DECLARE INTEGER NetUserAdd IN netapi32;
    STRING    servername,;
    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.

level
[in] Specifies the information level of the data (1..4).

buf
[in] Pointer to the buffer that specifies the data.

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:
Windows NT: Only members of the Administrators or Account Operators local group can successfully execute the NetUserAdd function. Only members of the Administrators local group can add an Administrators privilege account.

See also: NetUserEnum, NetUserSetInfo, NetUserDel.
Word Index links for the NetUserAdd :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2005-02-07 19:46:39
Modified: 2005-02-07 19:49:45
Visited in last 7 days: 12
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.221.73.186)
14 sec.Function: 'SetupDiGetClassImageIndex'
28 sec.Function: 'CryptGetProvParam'
41 sec.Function: 'DestroyMenu'
57 sec.Function: 'CreatePipe'
1.2 min.Function: 'OpenProcessToken'
1.47 min.Function: 'SetTextColor'
1.73 min.Function: 'GdipCreateHICONFromBitmap'
2 min.Function: 'mmioCreateChunk'
2.32 min.Function: 'SHFormatDrive'
2.58 min.Function: 'GetRegionData'
Google
Advertise here!