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 Scheduled Tasks using NetScheduleJob API functions
Adding and deleting User Accounts
Enumerating connections made to a shared resource for the local computer (WinNT only)
Enumerating files opened on the network
Enumerating global and local group accounts on a server (WinNT/XP/2K)
Enumerating network sessions established on a server
Enumerating servers of the specified type (e.g. SQL Server) in the primary domain
Finding out if the current user is the Guest account
How to enumerate, add and delete shares on the local computer (WinNT/XP)
Obtaining information about all user accounts on a server (WinNT only)
Obtaining names of local and global groups for current user (WinNT/XP/2K)
Retrieving configuration information for the specified server (Win2000/XP)
Retrieving configuration information for the specified workstation (Win2000/XP)
Retrieving information about all users currently logged on to the workstation (WinNT only)
Retrieving the name of the primary domain controller (PDC) and join status information
Using NetWkstaTransportEnum to obtain MAC Address of remote server
Using the NetMessageBufferSend to send messages on the network
NetApiBufferFree
..msdn    Add comment     W32 Constants      Translate this page
Frees the memory that the NetApiBufferAllocate function allocates. Call NetApiBufferFree to free the memory that other network management functions return on Windows NT, Windows 2000, and Windows XP.
Code examples:
Adding and deleting Scheduled Tasks using NetScheduleJob API functions
Using the NetMessageBufferSend to send messages on the network
Enumerating network sessions established on a server
Finding out if the current user is the Guest account
Retrieving the name of the primary domain controller (PDC) and join status information
Enumerating servers of the specified type (e.g. SQL Server) in the primary domain
How to enumerate, add and delete shares on the local computer (WinNT/XP)
Enumerating global and local group accounts on a server (WinNT/XP/2K)
Adding and deleting User Accounts
Using NetWkstaTransportEnum to obtain MAC Address of remote server
Declaration:
NET_API_STATUS NetApiBufferFree(
  LPVOID Buffer
);
FoxPro declaration:
DECLARE INTEGER NetApiBufferFree IN netapi32;
    INTEGER Buffer
Parameters:
Buffer
[in] Pointer to a buffer returned previously by another network management function.
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:
Windows NT/2000/XP: Included in Windows NT 3.1 and later.
Windows 95/98/Me: Unsupported.

Various NetApi functions
  • NetServerEnum
  • NetConnectionEnum
  • NetUserEnum
  • NetWkstaUserEnum
  • NetShareEnum
  • NetGetDCName
  • NetGroupEnum
  • NetLocalGroupEnum
    and more...
    implicitly allocate a memory buffer and require it to be freed after the call is complete.
  • Word Index links for the NetApiBufferFree :
    Translate this page:
      Spanish    Portuguese    German    French    Italian  
    FreeTranslation.com offers instant, free translations of text or web pages.
    Created: 2001-10-15 20:22:34
    Modified: 2003-06-24 10:31:17
    Visited in last 7 days: 27
    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.163.91.250)
    6 sec.Function: 'inet_ntoa'
    12 sec.Function: 'LogonUser'
    35 sec.
    Function group: 'URL Monikers'
    13.01 hrs.Example: 'How to convert a bitmap file to monochrome format (1 bpp)'
    Language: 'Visual FoxPro'
    Google
    Advertise here!