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:
Enumerating connections made to a shared resource for the local computer (WinNT only)
NetConnectionEnum
..msdn    Add comment     W32 Constants      Translate this page
Lists all connections made to a shared resource on the server or all connections established from a particular computer.
Code examples:
Enumerating connections made to a shared resource for the local computer (WinNT only)
Declaration:
WinNT:
NET_API_STATUS NetConnectionEnum(
  LPWSTR servername,
  LPWSTR qualifier,
  DWORD level,
  LPBYTE *bufptr,
  DWORD prefmaxlen,
  LPDWORD entriesread,
  LPDWORD totalentries,
  LPDWORD resume_handle
);
FoxPro declaration:
WinNT:
DECLARE INTEGER NetConnectionEnum IN netapi32;
    INTEGER   servername,;
    STRING    qualifier,;
    INTEGER   level,;
    INTEGER @ bufptr,;
    INTEGER   prefmaxlen,;
    INTEGER @ entriesread,;
    INTEGER @ totalentries,;
    INTEGER @ resume_handle
Parameters:
servername
[in] Pointer to a Unicode (Windows NT/2000/XP) or ANSI (Windows 95/98/Me) string specifying the name of the remote server on which the function is to execute.

qualifier
[in] Pointer to a Unicode (Windows NT/2000/XP) or ANSI (Windows 95/98/Me) string specifying a share name or computer name for the connections of interest.

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

bufptr
[out] Pointer to the address of the buffer that receives the information.

prefmaxlen
[in] Specifies the preferred maximum length of returned data, in bytes.

entriesread
[out] Pointer to a value that receives the count of elements actually enumerated.
totalentries

[out] Pointer to a value that receives the total number of entries that could have been enumerated from the current resume position.

resume_handle
[in/out] Pointer to a DWORD value that contains a resume handle which is used to continue an existing connection search.
Return value:
If the function succeeds, the return value is NERR_Success (0). If the function fails, the return value is a system error code.
My comment:
Admin or server, print, or comm operator group membership is required to successfully execute the NetConnectionEnum function.

Different declarations for Windows NT/2000/XP, and for Windows 95/98/Me.
Windows 95/98/Me: The caller must allocate and deallocate the buffer -- bufptr.

See NET SESSION command -- WinNT, NET VIEW command - WinMe.
Word Index links for the NetConnectionEnum :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-10-22 18:51:38
Modified: 2003-08-12 09:13:00
Visited in last 7 days: 23
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.147.40.153)
14 sec.Function: 'CeRapiGetError'
Function group: 'Remote Application Programming (RAPI)'
42 sec.Login
54 sec.Examples
1.17 min.Function: 'GetSystemWow64Directory'
Function group: 'System Information'
1.43 min.Function: 'waveInStop'
Function group: 'Windows Multimedia'
1.7 min.Function: 'CeRapiUninit'
Function group: 'Remote Application Programming (RAPI)'
1.97 min.Function: 'midiOutClose'
Function group: 'Windows Multimedia'
2.23 min.Function: 'CeFindFirstFile'
Function group: 'Remote Application Programming (RAPI)'
2.47 min.Example: 'Capturing keyboard activity of another application with the Raw Input API (VFP9)'
2.77 min.Example: 'Adding and deleting User Accounts'
Google
Advertise here!