Using Win32 functions in Visual FoxPro Image Gallery
Function Groups:
All Functions 1306
Atom 1
Authentication 14
Authorization 6
Bitmap 9
Brush 2
Clipboard 20
Color 1
Common Dialog Box 12
Console 12
Coordinate Space and Transformation 9
Cryptography Reference 28
Cursor 5
Data Decompression Library 3
Debugging 2
Desktop Window Manager (DWM) 1
Device Context 13
Device Input and Output 1
Dialog Box 6
DNS Functions 1
Dynamic-Link Library 6
Error Handling 10
Event Logging 10
Extensible Storage Engine (ESE, Jet Blue) 23
File Management 49
File Mapping 4
File System 19
Filled Shape 2
Font and Text 13
GDI+ 6
GDI+ Bitmap 10
GDI+ Brush 4
GDI+ Font 9
GDI+ Graphics 28
GDI+ Image 20
GDI+ ImageAttributes 3
GDI+ Matrix 10
GDI+ PathGradient Brush 3
GDI+ Pen 2
GDI+ StringFormat 2
GDI+ Text 2
Handle and Object 4
Hook 2
HTTP Functions (WinHTTP) 12
Icon 7
Internet Functions (WinInet) 49
IP Helper 24
Kernel Transaction Manager 3
Keyboard Input 22
Mailslot 3
Memory Management 26
Menu 18
Message and Message Queue 12
Metafile 6
Monitor Configuration (Vista) 8
Mouse Input 8
MSHTML Reference 1
Multilingual User Interface 4
Multiple Display Monitors 2
National Language Support 20
Network Management 34
Painting and Drawing 17
Path 3
Performance Monitoring 12
Pipe 5
PnP Configuration Manager 6
Power Management 6
Printing and Print Spooler 35
Process and Thread 31
Raw Input 4
Region 7
Registry 21
Remote Access Service (RAS) 5
Remote Application Programming (RAPI) 49
Remote Procedure Call (RPC) 7
Resource 10
Security 22
Service 11
Setup API functions 7
Shell Functions 39
Shell Lightweight Utility APIs -- misc. functions 2
Shell Lightweight Utility APIs -- Path Functions 20
Shell Lightweight Utility APIs -- string functions 4
Simple MAPI 9
String 10
Synchronization 13
System Information 23
System Shutdown 5
Terminal Services 10
Time 16
Unicode and Character Set 2
URL Monikers 7
Version Information 2
Virtual Hard Disk (Win7) 4
Window 37
Window Class 8
Window Procedure 3
Window Property 3
Window Station and Desktop 7
Windows Controls 8
Windows Multimedia 76
Windows Networking 18
Windows Sockets 2 (Winsock) 38
Network Management            ..msdn    Add comment
NetApiBufferFree 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.
NetApiBufferSize The NetApiBufferSize function returns the size, in bytes, of a buffer allocated by a call to the NetApiBufferAllocate function.
NetConnectionEnum Lists all connections made to a shared resource on the server or all connections established from a particular computer.
NetFileClose The NetFileClose function forces a resource to close.
NetFileEnum The NetFileEnum function returns information about some or all open files on a server, depending on the parameters specified.
NetFileGetInfo The NetFileGetInfo function retrieves information about a particular opening of a server resource.
NetGetDCName Returns the name of the primary domain controller (PDC). It does not return the name of the backup domain controller (BDC) for the specified domain.
NetGroupEnum The NetGroupEnum function retrieves information about each global group in the security database, which is the security accounts manager (SAM) database or, in the case of domain controllers, the Active Directory.
NetLocalGroupEnum The NetLocalGroupEnum function returns information about each local group account on the specified server.
NetMessageBufferSend Sends a buffer of information to a registered message alias.
NetMessageNameAdd Registers a message alias in the message name table. The function requires that the messenger service be started.
NetMessageNameDel Deletes a message alias in the message name table. The function requires that the messenger service be started.
NetMessageNameEnum Lists the message aliases that receive messages on a specified computer. The function requires that the messenger service be started.
NetScheduleJobAdd Submits a job to run at a specified future time and date.
NetScheduleJobDel The NetScheduleJobDel function deletes a range of jobs queued to run at a computer.
NetScheduleJobEnum Lists the jobs queued on a specified computer.
NetServerEnum Lists all servers of the specified type that are visible in a domain.
NetServerGetInfo The NetServerGetInfo function retrieves current configuration information for the specified server.
NetSessionEnum Provides information about sessions established on a server.
NetShareAdd Shares a server resource.
NetShareDel Deletes a share name from a server"s list of shared resources, disconnecting all connections to the shared resource.
NetShareEnum The NetShareEnum function retrieves information about each shared resource on a server or the local computer.
NetShareSetInfo Sets the parameters of a shared resource.
NetUserAdd Adds a user account and assigns a password and privilege level.
NetUserChangePassword Changes user`s password for a specified network server or domain.
NetUserDel Deletes a user account from a server.
NetUserEnum The NetUserEnum function provides information about all user accounts on a server.
NetUserGetGroups The NetUserGetGroups function retrieves a list of global groups to which a specified user belongs.
NetUserGetInfo Retrieves information about a particular user account on a server.
NetUserGetLocalGroups The NetUserGetLocalGroups function retrieves a list of local groups to which a specified user belongs.
NetUserSetInfo Sets the parameters of a user account.
NetWkstaGetInfo The NetWkstaGetInfo function returns information about the configuration of a workstation.
NetWkstaTransportEnum The NetWkstaTransportEnum function supplies information about transport protocols that are managed by the redirector, which is the software on the client computer that generates file requests to the server computer.
NetWkstaUserEnum The NetWkstaUserEnum function lists information about all users currently logged on to the workstation. This list includes interactive, service and batch logons.
Code examples:
How to enumerate, add and delete shares on the local computer (WinNT/XP)
Using the NetMessageBufferSend to send messages on the network
Adding and deleting User Accounts
Adding and deleting Scheduled Tasks using NetScheduleJob API functions
Enumerating global and local group accounts on a server (WinNT/XP/2K)
Finding out if the current user is the Guest account
Obtaining names of local and global groups for current user (WinNT/XP/2K)
Retrieving the name of the primary domain controller (PDC) and join status information
Enumerating network sessions established on a server
Using NetWkstaTransportEnum to obtain MAC Address of remote server
Obtaining information about all user accounts on a server (WinNT only)
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)
Enumerating servers of the specified type (e.g. SQL Server) in the primary domain
Enumerating files opened on the network
Enumerating connections made to a shared resource for the local computer (WinNT only)
Retrieving configuration information for the specified server (Win98/Me)
User Contributed Notes:
Hoffa | 2005-03-27 08:03:31
Is there a way to start a process in a remote computer from your local computer over a network and in the same way as the proces should have been started from the remote computer itself?
GavD | 2006-05-05 09:55:22
Dim WMISvc, intProcID, intErrVal
Set WMISvc = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strMachineName & "\root\cimv2:Win32_Process")
intErrVal = WMISvc.Create("notepad.exe",null,null,intProcID)
If intErrVal = 0 Then
  WScript.Echo "Created - process id is " & intProcID
  WScript.Echo "Error creating process"
End If

Copyright 2001-2018 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.39), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
20 sec.Function: 'waveInUnprepareHeader'
Function group: 'Windows Multimedia'
38 sec.Function: 'HeapUnlock'
Advertise here!