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
Vertical Label control
Using the heap of the calling process to allocate memory blocks
Mapping and disconnecting network drives
How to print a bitmap file
Browsing Windows Known Folders (Special Folders)
Obtaining names and positions for shortcuts located on the Windows Desktop
How to load a user profile
Custom HttpRequest class (WinHTTP)
Displaying system dialog that selects a folder
Creating the Open dialog box to specify the drive, directory, and name of a file to open
How to display the Properties dialog box for a file (ShellExecuteEx)
Winsock: connecting to a news server (NNTP, port 119)
Writing entries to custom Event Log
How to display a user-defined icon in the MessageBox dialog
Printing Image File, programmatically set print page orientation to landscape
Subclassing CommandButton control to create BackColor property
Class for sound recording
Shortcut Menu Class
How to display advanced Task Dialog (Vista)
How to prevent users from accessing the Windows Desktop and from switching to other applications
Enumerating network resources
How to convert a bitmap file to monochrome format (1 bpp)
Creating the Save dialog box to specify the drive, directory, and name of a file to save
Obtaining heap handles and enumerating memory blocks for the current VFP session (WinNT only)
Adding printer to the list of supported printers for the specified server
Retrieving local computer and user names
Windows Shell Icons displayed and exported to ICO files (Vista)
Reading entries from Event logs
Starting a dialog box for connecting to network resources and passing input parameters
How to enumerate, add and delete shares on the local computer (WinNT/XP)
Storing content of the Clipboard to a bitmap file
Moving shortcut to a specified position on the Windows Desktop
Adding and deleting Scheduled Tasks using NetScheduleJob API functions
Reading security permissions for NTFS files and folders
Extensible Storage Engine class library
Converting command-line string to a set of Unicode argument strings
How to remove a directory that is not empty
Compressing and decompressing files with Windows API Runtime Library routines
Using WM_COPYDATA for interprocess communication (VFP9)
Retrieving the name of the default printer for the current user on the local computer (Win NT/XP)
Using Change Notification Objects to monitor changes to the printer or print server
Verifying a file using the Authenticode policy provider
Sending email messages with Simple MAPI
WAV file player
How to write and read Window Properties for the specified window
Adding and deleting User Accounts
Attaching menu to a top-level form
Storing screen shot of a form to bitmap file
User Contributed Notes:
There are no notes on this subject.

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 (
23 sec.Example: 'How to download a file from HTTP server using URL Monikers functions'
41 sec.Function: 'GetCurrentThread'
Function group: 'Process and Thread'
1.37 min.Function: 'inet_ntoa'
Function group: 'Windows Sockets 2 (Winsock)'
1.7 min.Banners
1.98 min.
2.33 min.
Function group: 'Virtual Hard Disk (Win7)'
2.62 min.
Function group: 'Clipboard'
2.93 min.Function: 'FtpOpenFile'
3.22 min.Function: 'SetFilePointerEx'
Function group: 'File Management'
3.52 min.Function: 'SetSearchPathMode'
Function group: 'File Management'
Advertise here!