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:
Retrieving the name of the primary domain controller (PDC) and join status information
NetGetJoinInformation
..msdn    Add comment     W32 Constants      Translate this page
The NetGetJoinInformation function retrieves join status information for the specified computer.
Code examples:
Retrieving the name of the primary domain controller (PDC) and join status information
Declaration:
NET_API_STATUS NetGetJoinInformation(
  LPCWSTR lpServer,
  LPWSTR* lpNameBuffer,
  PNETSETUP_JOIN_STATUS BufferType
);
FoxPro declaration:
DECLARE INTEGER NetGetJoinInformation IN netapi32;
    STRING    lpServer,;
    INTEGER @ lpNameBuffer,;
    INTEGER @ BufferType
Parameters:
lpServer
[in] Pointer to a constant string that specifies the DNS or NetBIOS name of the computer on which to call the function. If this parameter is NULL, the local computer is used.

lpNameBuffer
[out] Pointer to the buffer that receives the NetBIOS name of the domain or workgroup to which the computer is joined.

BufferType
[out] Receives the join status of the specified computer: unknown, unjoined, workgroup, domain
Return value:
If the function succeeds, the return value is NERR_Success (0).
My comment:
The lpNameBuffer buffer is allocated by the system and must be freed using the NetApiBufferFree function.

Regularly this function returns either domain name or workgroup name for selected computer.
Word Index links for the NetGetJoinInformation :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2004-06-17 08:47:38
Modified: 2004-06-17 08:52:27
Visited in last 7 days: 15
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.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.167.250.64)
3 sec.Function: 'ShellExecute'
6 sec.Function: 'MapVirtualKey'
10 sec.Function: 'GetClassName'
14 sec.Function: 'SQLExecDirect'
17 sec.Function: 'CreateSymbolicLink'
20 sec.Function: 'NetSessionEnum'
23 sec.Function: 'GdipRotateWorldTransform'
27 sec.Function: 'capCreateCaptureWindow'
30 sec.Function: 'GetDefaultPrinter'
34 sec.Function: 'SetBkColor'
Google
Advertise here!