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:
Adding and deleting User Accounts
Finding out if the current user is the Guest account
NetUserGetInfo
..msdn    Add comment     W32 Constants      Translate this page
Retrieves information about a particular user account on a server.
Code examples:
Finding out if the current user is the Guest account
Adding and deleting User Accounts
Declaration:
NET_API_STATUS NetUserGetInfo(
  LPCWSTR servername,
  LPCWSTR username,
  DWORD level,
  LPBYTE* bufptr
);

FoxPro declaration:
DECLARE INTEGER NetUserGetInfo IN netapi32;
    STRING    servername,;
    STRING    username,;
    INTEGER   lvl,;
    INTEGER @ bufptr

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.

username
[in] Pointer to a constant string that specifies the name of the user account for which to return information.

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

bufptr
[out] Pointer to the buffer that receives the data.
Return value:
If the function succeeds, the return value is NERR_Success (0).
My comment:
Important: the bufptr is allocated by the system and must be freed using the NetApiBufferFree function.

See also: NetUserSetInfo, NetUserGetGroups, NetUserEnum.
Word Index links for the NetUserGetInfo :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2005-02-07 19:56:37
Modified: 2005-02-07 20:00:45
Visited in last 7 days: 38
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.227.127.109)
13 sec.Example: 'Obtaining names of local and global groups for current user (WinNT/XP/2K)'
28 sec.Function: 'midiOutReset'
Function group: 'Windows Multimedia'
42 sec.Function: 'CeRapiInit'
Function group: 'Remote Application Programming (RAPI)'
55 sec.Function: 'waveOutGetVolume'
Function group: 'Windows Multimedia'
1.13 min.Example: 'How to play AVI file on the _screen'
1.32 min.Example: 'Copying picture of the active form to the Clipboard using Enhanced Metafile API functions'
1.62 min.Function: 'timeGetDevCaps'
Function group: 'Windows Multimedia'
1.85 min.Function: 'CeRapiInitEx'
Function group: 'Remote Application Programming (RAPI)'
2.1 min.Function: 'NetUserGetInfo'
Function group: 'Network Management'
2.37 min.Function: 'waveOutUnprepareHeader'
Function group: 'Windows Multimedia'
Google
Advertise here!