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
NetUserDel
..msdn    Add comment     W32 Constants      Translate this page
Deletes a user account from a server.
Code examples:
Adding and deleting User Accounts
Declaration:
NET_API_STATUS NetUserDel(
  LPCWSTR servername,
  LPCWSTR username
);
FoxPro declaration:
DECLARE INTEGER NetUserDel IN netapi32;
    STRING servername,;
    STRING username

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 to delete.
Return value:
If the function succeeds, the return value is NERR_Success (0).
My comment:
Windows NT: This servername must begin with \\.

Only members of the Administrators or the Account Operators local group can successfully execute NetUserDel on a remote server or on a computer that has local security enabled. Only members of the Administrators local group can delete an Administrators privilege account.

See also: NetUserAdd, NetUserEnum, NetUserSetInfo.
Word Index links for the NetUserDel :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2005-02-07 19:53:35
Modified: 2005-02-07 19:56:08
Visited in last 7 days: 36
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.82.112.193)
16 sec.
Function group: 'Process and Thread'
33 sec.Function: 'GetTimeZoneInformation'
48 sec.Function: 'RealDriveType'
1.07 min.Function: 'MoveFileTransacted'
1.35 min.Function: 'CreateWaitableTimer'
1.6 min.Function: 'WNetEnumResource'
1.87 min.Function: 'FindNextVolume'
2.12 min.Function: 'GetGUIThreadInfo'
2.4 min.Function: 'InternetFindNextFile'
2.67 min.Function: 'GdipGetImageEncoders'
Google
Advertise here!