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
COM 6
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
ODBC API 30
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
CopyMemory
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
Printing Image File, programmatically set print page orientation to landscape
Displaying dimmed window behind VFP top-level form
Extensible Storage Engine class library
Browsing Windows Known Folders (Special Folders)
How to load a user profile
Enumerating network resources
How to print a bitmap file
Compressing and decompressing files with Windows API Runtime Library routines
Vertical Label control
How to prevent users from accessing the Windows Desktop and from switching to other applications
Custom HttpRequest class (WinHTTP)
Writing entries to custom Event Log
How to convert a bitmap file to monochrome format (1 bpp)
Windows Shell Icons displayed and exported to ICO files (Vista)
Obtaining names and positions for shortcuts located on the Windows Desktop
Class for sound recording
Winsock: connecting to a news server (NNTP, port 119)
Attaching menu to a top-level form
How to display the Properties dialog box for a file (ShellExecuteEx)
Using the heap of the calling process to allocate memory blocks
How to display advanced Task Dialog (Vista)
Mapping and disconnecting network drives
Displaying system dialog that selects a folder
How to display a user-defined icon in the MessageBox dialog
Retrieving local computer and user names
Creating the Open dialog box to specify the drive, directory, and name of a file to open
Starting a dialog box for connecting to network resources and passing input parameters
Loading a string resource from an executable file
Retrieving the name of the default printer for the current user on the local computer (Win NT/XP)
Storing content of the Clipboard to a bitmap file
Verifying a file using the Authenticode policy provider
How to enumerate, add and delete shares on the local computer (WinNT/XP)
Using WM_COPYDATA for interprocess communication (VFP9)
How to write and read Window Properties for the specified window
Reading entries from Event logs
How to remove a directory that is not empty
Adding and deleting User Accounts
Adding and deleting Scheduled Tasks using NetScheduleJob API functions
Adding user-defined items to the Control Menu of VFP form (requires VFP9)
Storing screen shot of a form to bitmap file
Creating the Save dialog box to specify the drive, directory, and name of a file to save
URL: splitting into its component parts
How to print FoxPro form
How to assemble an array of strings and pass it to external function
Copying strings through the global memory block
Shortcut Menu Class
Reading security permissions for NTFS files and folders
GDI+: reading and writing metadata in JPEG and TIFF files
Obtaining heap handles and enumerating memory blocks for the current VFP session (WinNT only)
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.196.47.128)
11 sec.Function: 'CreateSymbolicLink'
Function group: 'File Management'
21 sec.Function: 'RollbackTransaction'
32 sec.Function: 'SQLGetFunctions'
Function group: 'ODBC API'
42 sec.Example: 'Using custom Simple MapiSendMail class'
54 sec.Function: 'InternetCanonicalizeUrl'
Function group: 'Internet Functions (WinInet)'
1.05 min.Function: 'NetUserEnum'
Function group: 'Network Management'
1.23 min.Articles
1.62 min.Function: 'waveOutGetVolume'
Function group: 'Windows Multimedia'
Google
Advertise here!