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 names of local and global groups for current user (WinNT/XP/2K)
NetUserGetGroups
..msdn    Add comment     W32 Constants      Translate this page
The NetUserGetGroups function retrieves a list of global groups to which a specified user belongs.
Code examples:
Obtaining names of local and global groups for current user (WinNT/XP/2K)
Declaration:
NET_API_STATUS NetUserGetGroups(
  LPCWSTR servername,
  LPCWSTR username,
  DWORD level,
  LPBYTE* bufptr,
  DWORD prefmaxlen,
  LPDWORD entriesread,
  LPDWORD totalentries
);

FoxPro declaration:
DECLARE INTEGER NetUserGetGroups IN netapi32;
    STRING    servername,;
    STRING    username,;
    INTEGER   lvl,;
    INTEGER @ bufptr,;
    INTEGER   prefmaxlen,;
    INTEGER @ entriesread,;
    INTEGER @ totalentries

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.

username
[in] Pointer to a constant string that specifies the name of the user to search for in each group account.

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

bufptr
[out] Pointer to the buffer that receives the data. This buffer is allocated by the system and must be freed using the NetApiBufferFree function.

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 retrieved.

totalentries
[out] Pointer to a value that receives the total number of entries that could have been retrieved.
Return value:
If the function succeeds, the return value is NERR_Success (0).
Word Index links for the NetUserGetGroups :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2003-12-05 20:43:37
Modified: 2003-12-05 20:46:34
Visited in last 7 days: 17
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 (23.22.128.96)
4 sec.Function: 'GetOpenFileName'
7 sec.Example: 'How to retrieve adapter information for the local computer (including MAC address)'
16 sec.Function: 'CloseHandle'
20 sec.Example: 'How to perform Base64 encoding/decoding using Cryptography API Functions'
26 sec.Example: 'Displaying the main Dial-Up Networking dialog box'
34 sec.Example: 'Running MSDOS Shell as a child process with redirected input and output (smarter RUN command)'
51 sec.Function: 'inet_ntoa'
1.9 min.Function: 'PlaySound'
Function group: 'Windows Multimedia'
17.05 hrs.Function: 'FreeEnvironmentStrings'
Function group: 'Process and Thread'
17.06 hrs.Examples
Google
Advertise here!