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
Retrieving the name of the primary domain controller (PDC) and join status information

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
More code examples    Listed functions    Add comment     W32 Constants      Translate this page Printer friendly version of this code sample
Versions:
click to open
 
  Members area. Log in to view this example.
 
  User name:
  Password:
 
 
  Forgot your password?
 
  Sign up for
the Membership
 
 


User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
2153 bytes  
Created: 2001-10-16 23:40:10  
Modified: 2013-10-19 22:27:04  
Visits in 7 days: 167  
Listed functions:
NetApiBufferFree
NetApiBufferSize
NetGetDCName
NetGetJoinInformation
Printer friendly API declarations
My comment:
Notice that SERVERNAME and DOMAIN name parameters are declared as Integers, not Strings, and are set to zero.

This is done to pass NULL values to the function instead of string values. In this case the local computer is used (SERVERNAME), and the function returns the name of the domain controller for the primary domain (DOMAIN).

Error 2453 means that your computer is not joined to domain. Use NetJoinDomain function or go through the network settings to join a domain.
Word Index links for this example:
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
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)
18 sec.Function: 'CeCloseHandle'
Function group: 'Remote Application Programming (RAPI)'
34 sec.Function: 'NetUserGetLocalGroups'
Function group: 'Network Management'
51 sec.Function: 'CeGetLastError'
1.12 min.Function: 'NetUserChangePassword'
Function group: 'Network Management'
1.42 min.Function: 'GetComputerNameEx'
Function group: 'System Information'
1.68 min.Function: 'CeCreateFile'
Function group: 'Remote Application Programming (RAPI)'
1.95 min.Function: 'CeRegEnumKeyEx'
Function group: 'Remote Application Programming (RAPI)'
2.22 min.Function: 'IsValidURL'
Function group: 'URL Monikers'
2.52 min.Function: 'waveInGetNumDevs'
Function group: 'Windows Multimedia'
2.8 min.Function: 'UrlUnescape'
Function group: 'Shell Lightweight Utility APIs -- Path Functions'
Google
Advertise here!