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:
Obtaining information about all user accounts on a server (WinNT only)
NetUserEnum
..msdn    Add comment     W32 Constants      Translate this page
The NetUserEnum function provides information about all user accounts on a server.
Code examples:
Obtaining information about all user accounts on a server (WinNT only)
Declaration:
NET_API_STATUS NetUserEnum(
  LPCWSTR servername,    
  DWORD level,           
  DWORD filter,          
  LPBYTE *bufptr,        
  DWORD prefmaxlen,      
  LPDWORD entriesread,   
  LPDWORD totalentries,  
  LPDWORD resume_handle  
);
FoxPro declaration:
DECLARE INTEGER NetUserEnum IN netapi32;
    STRING    servername,;
    INTEGER   level,;
    INTEGER   filter,;
    INTEGER @ bufptr,;
    INTEGER   prefmaxlen,;
    INTEGER @ entriesread,;
    INTEGER @ totalentries,;
    INTEGER @ resume_handle
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.

filter
[in] Specifies a value that filters the account types for enumeration. A value of zero indicates all account types.

bufptr
[out] Pointer to the buffer that receives the data.

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

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 value that contains a resume handle which is used to continue an existing user search.
Return value:
If the function succeeds, the return value is NERR_Success (0). If the function fails, the return value is an error code.
My comment:
Windows NT/2000/XP: Included in Windows NT 3.1 and later.
Windows 95/98/Me: Unsupported.

If you call NetUserEnum and specify information level 1, 2, 3, or 4, the password member of each structure is set to NULL to maintain password security.

To quickly enumerate user, computer, or global group account information, call the NetQueryDisplayInformation function.
Word Index links for the NetUserEnum :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2002-01-13 10:29:33
Modified: 2002-01-13 10:34:12
Visited in last 7 days: 11
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.225.20.73)
15 sec.Function: 'ImpersonateLoggedOnUser'
Function group: 'Security'
28 sec.Function: 'SCardListInterfaces'
43 sec.Function: 'SQLInstallerError'
55 sec.Function: 'CeReadRecordProps'
1.13 min.Function: 'IsWindow'
1.35 min.Function: 'GetMenuItemInfo'
1.55 min.Function: 'CharToOem'
1.87 min.Function: 'CreateMenu'
2.08 min.Function: 'GetTcp6Table'
2.33 min.
Function group: 'Shell Lightweight Utility APIs -- misc. functions'
Google
Advertise here!