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
Memory Management            ..msdn    Add comment
FillMemory The FillMemory function fills a block of memory with a specified value.
GetProcessHeap The GetProcessHeap function obtains a handle to the heap of the calling process. This handle can then be used in subsequent calls to the HeapAlloc, HeapReAlloc, HeapFree, and HeapSize functions.
GetProcessHeaps The GetProcessHeaps function obtains handles to all of the heaps that are valid for the calling process.
GlobalAlloc The GlobalAlloc function allocates the specified number of bytes from the heap
GlobalFree The GlobalFree function frees the specified global memory object and invalidates its handle
GlobalLock The GlobalLock function locks a global memory object and returns a pointer to the first byte of the object"s memory block.
GlobalMemoryStatus The GlobalMemoryStatus function obtains information about the system"s current usage of both physical and virtual memory.
GlobalReAlloc Changes the size or attributes of a specified global memory object. The size can increase or decrease.
GlobalSize The GlobalSize function retrieves the current size, in bytes, of the specified global memory object
GlobalUnlock Decrements the lock count associated with a memory object that was allocated with GMEM_MOVEABLE. This function has no effect on memory objects allocated with GMEM_FIXED.
HeapAlloc The HeapAlloc function allocates a block of memory from a heap. The allocated memory is not movable.
HeapCompact Attempts to compact a specified heap. It compacts the heap by coalescing adjacent free blocks of memory and decommitting large free blocks of memory.
HeapFree The HeapFree function frees a memory block allocated from a heap by the HeapAlloc or HeapReAlloc function.
HeapLock Attempts to acquire the critical section object, or lock, that is associated with a specified heap.
HeapReAlloc The HeapReAlloc function reallocates a block of memory from a heap. This function enables you to resize a memory block and change other memory block properties. The allocated memory is not movable.
HeapSize The HeapSize function retrieves the size of a memory block allocated from a heap by the HeapAlloc or HeapReAlloc function.
HeapUnlock Releases ownership of the critical section object, or lock, that is associated with a specified heap. The HeapUnlock function reverses the action of the HeapLock function.
HeapValidate Attempts to validate a specified heap. The function scans all the memory blocks in the heap, and verifies that the heap control structures maintained by the heap manager are in a consistent state.

You can also use the HeapValidate function to validate a single memory block within a specified heap, without checking the validity of the entire heap.
HeapWalk Enumerates the memory blocks in a specified heap created or manipulated by heap memory allocators such as HeapAlloc, HeapReAlloc, and HeapFree.
LocalAlloc The LocalAlloc function allocates the specified number of bytes from the heap.
LocalFree The LocalFree function frees the specified local memory object and invalidates its handle.
LocalSize The LocalSize function returns the current size of the specified local memory object, in bytes.
VirtualAllocEx Reserves or commits a region of memory within the virtual address space of a specified process.
VirtualFreeEx Releases, decommits, or releases and decommits a region of memory within the virtual address space of a specified process.
ZeroMemory Fills a block of memory with zeros.
Code examples:
Passing data records between VFP applications via the Clipboard
Displaying dimmed window behind VFP top-level form
Printing Image File, programmatically set print page orientation to landscape
How to load a user profile
Browsing Windows Known Folders (Special Folders)
Vertical Label control
How to print a bitmap file
Compressing and decompressing files with Windows API Runtime Library routines
Windows Shell Icons displayed and exported to ICO files (Vista)
Enumerating network resources
Writing entries to custom Event Log
How to prevent users from accessing the Windows Desktop and from switching to other applications
Obtaining names and positions for shortcuts located on the Windows Desktop
Extensible Storage Engine class library
Custom HttpRequest class (WinHTTP)
Winsock: connecting to a news server (NNTP, port 119)
Class for sound recording
Starting a dialog box for connecting to network resources and passing input parameters
How to convert a bitmap file to monochrome format (1 bpp)
How to display advanced Task Dialog (Vista)
Using the heap of the calling process to allocate memory blocks
Verifying a file using the Authenticode policy provider
Retrieving the name of the default printer for the current user on the local computer (Win NT/XP)
How to display a user-defined icon in the MessageBox dialog
How to display the Properties dialog box for a file (ShellExecuteEx)
Adding user-defined items to the Control Menu of VFP form (requires VFP9)
Attaching menu to a top-level form
Displaying system dialog that selects a folder
Storing content of the Clipboard to a bitmap file
Retrieving local computer and user names
Creating the Open dialog box to specify the drive, directory, and name of a file to open
Using WM_COPYDATA for interprocess communication (VFP9)
Loading a string resource from an executable file
Mapping and disconnecting network drives
Using Change Notification Objects to monitor changes to the printer or print server
How to remove a directory that is not empty
Reading entries from Event logs
Adding and deleting User Accounts
Storing screen shot of a form to bitmap file
How to write and read Window Properties for the specified window
Moving shortcut to a specified position on the Windows Desktop
Shortcut Menu Class
How to enumerate, add and delete shares on the local computer (WinNT/XP)
How to print FoxPro form
Subclassing CommandButton control to create BackColor property
Adding and deleting Scheduled Tasks using NetScheduleJob API functions
Copying strings through the global memory block
Converting command-line string to a set of Unicode argument strings
How to assemble an array of strings and pass it to external function
Sending email messages with Simple MAPI
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.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
5 sec.Function: 'mciGetDeviceID'
10 sec.Function: 'GetBoundsRect'
14 sec.Function: 'RegisterServiceProcess'
18 sec.Function: 'SwapMouseButton'
22 sec.Function: 'WritePrivateProfileString'
26 sec.Function: 'CloseClipboard'
30 sec.Function: 'OpenProcess'
34 sec.Function: 'WinHttpConnect'
39 sec.Function: 'GetCursorInfo'
43 sec.Function: 'gethostname'
Advertise here!