Using Win32 functions in Visual FoxPro Image Gallery
Windows Networking
..msdn
NetGetJoinInformation
NetJoinDomain
NetUnjoinDomain
WNetAddConnection
WNetAddConnection2
WNetCancelConnection2
WNetCloseEnum
WNetConnectionDialog
WNetConnectionDialog1
WNetDisconnectDialog
WNetEnumResource
WNetGetConnection
WNetGetLastError
WNetGetNetworkInformation
WNetGetProviderName
WNetGetUniversalName
WNetGetUser
WNetOpenEnum
Code examples:
Joining local computer to a domain (XP/2000)
NetUnjoinDomain
..msdn    Add comment     W32 Constants      Translate this page
The NetUnjoinDomain function unjoins a computer from a workgroup or a domain.
Code examples:
Joining local computer to a domain (XP/2000)
Declaration:
NET_API_STATUS NetUnjoinDomain(
  LPCWSTR lpServer,
  LPCWSTR lpAccount,
  LPCWSTR lpPassword,
  DWORD fUnjoinOptions
);
FoxPro declaration:
DECLARE INTEGER NetUnjoinDomain IN netapi32;
    STRING  lpServer,;
    STRING  lpAccount,;
    STRING  lpPassword,;
    INTEGER fUnjoinOptions
Parameters:
lpServer
[in] Pointer to a constant string that specifies the DNS or NetBIOS name of the computer on which the function is to execute.

lpAccount
[in] Pointer to a constant string that specifies the account name to use when connecting to the domain controller.

lpPassword
[in] If the lpAccount parameter specifies an account name, this parameter must point to the password to use when connecting to the domain controller.

fUnjoinOptions
[in] Specifies the unjoin options. If this parameter is NETSETUP_ACCT_DELETE, the account is disabled when the unjoin occurs. Note that this option does not delete the account.
Return value:
If the function succeeds, the return value is NERR_Success (0).
My comment:
Unjoining (and joining) a computer to a domain or workgroup can be performed only by a member of the Administrators local group on the target computer.
Word Index links for the NetUnjoinDomain :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2004-06-14 10:16:28
Modified: 2004-06-14 10:18:32
Visited in last 7 days: 26
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.234.247.118)
13 sec.Function: 'GetRawInputDeviceInfo'
27 sec.Function: 'WinHttpSendRequest'
40 sec.
Function group: 'File Management'
54 sec.
Function group: 'Dialog Box'
1.15 min.Function: 'PlayEnhMetaFile'
1.37 min.Function: 'Polygon'
1.62 min.Function: 'WSAConnect'
1.87 min.Function: 'SetVolumeLabel'
2.1 min.
Function group: 'File System'
2.37 min.Function: 'FtpCommand'
Google
Advertise here!