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:
Retrieving information about all users currently logged on to the workstation (WinNT only)
NetWkstaUserEnum
..msdn    Add comment     W32 Constants      Translate this page
The NetWkstaUserEnum function lists information about all users currently logged on to the workstation. This list includes interactive, service and batch logons.
Code examples:
Retrieving information about all users currently logged on to the workstation (WinNT only)
Declaration:
NET_API_STATUS NetWkstaUserEnum(
  LPWSTR servername,
  DWORD level,
  LPBYTE *bufptr,
  DWORD prefmaxlen,
  LPDWORD entriesread,
  LPDWORD totalentries,
  LPDWORD resumehandle
);
FoxPro declaration:
DECLARE INTEGER NetWkstaUserEnum IN netapi32;
    STRING    servername,;
    INTEGER   level,;
    INTEGER @ bufptr,;
    INTEGER   prefmaxlen,;
    INTEGER @ entriesread,;
    INTEGER @ totalentries,;
    INTEGER @ resumehandle
Parameters:
servername
[in] Pointer to a Unicode string specifying the name of the remote server on which the function is to execute.

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

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

prefmaxlen
[in] Specifies the preferred maximum length of returned data, in bytes. If you specify MAX_PREFERRED_LENGTH (-1), the function allocates the amount of memory required for the data.

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

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

resumehandle
[in/out] Pointer to a DWORD value that contains a resume handle which is used to continue an existing search.
Return value:
If the function succeeds, the return value is NERR_Success (0).
My comment:
Windows NT/2000/XP: Included in Windows NT 3.1 and later.
Windows 95/98/Me: Unsupported.
Word Index links for the NetWkstaUserEnum :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-10-16 23:53:46
Modified: 2001-11-26 16:03:46
Visited in last 7 days: 9
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2014 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.1.68), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.89.79.33)
3 sec.Function: 'GetIconInfo'
8 sec.Function: 'DrawAnimatedRects'
13 sec.Example: 'How to retrieve the number of print jobs queued for the printer'
22 sec.Function: 'getnameinfo'
Function group: 'Windows Sockets 2 (Winsock)'
1.2 min.
Function group: 'Dialog Box'
4.68 hrs.Function: 'SQLSetConfigMode'
Function group: 'ODBC API'
2 day(s)Function: 'AttachVirtualDisk'
6 day(s)Function: 'CryptGetHashParam'
Function group: 'Cryptography Reference'
9 day(s)Function: 'SQLTables'
 Function: 'NetApiBufferSize'
Function group: 'Network Management'
Google
Advertise here!