Using Win32 functions in Visual FoxPro Image Gallery
Function Groups:
All Functions 1263
Atom 1
Authentication 14
Authorization 6
Bitmap 9
Brush 2
Clipboard 15
Color 1
COM 6
Common Dialog Box 12
Console 12
Coordinate Space and Transformation 9
Cryptography Reference 26
Cursor 5
Data Decompression Library 3
Debugging 2
Desktop Window Manager (DWM) 1
Device Context 13
Device Input and Output 1
Dialog Box 6
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 26
GDI+ Image 20
GDI+ ImageAttributes 3
GDI+ Matrix 10
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 6
Metafile 6
Monitor Configuration (Vista) 8
Mouse Input 7
MSHTML Reference 1
Multiple Display Monitors 2
National Language Support 8
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 19
Service 11
Setup API functions 7
Shell Functions 37
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 36
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:
Custom HttpRequest class (WinHTTP)
Mapping and disconnecting network drives
How to convert a bitmap file to monochrome format (1 bpp)
Printing Image File, programmatically set print page orientation to landscape
Enumerating network resources
How to print a bitmap file
Passing data records between VFP applications via the Clipboard
How to display the Properties dialog box for a file (ShellExecuteEx)
Displaying system dialog that selects a folder
Using the heap of the calling process to allocate memory blocks
Sending email messages with Simple MAPI
Creating the Open dialog box to specify the drive, directory, and name of a file to open
Vertical Label control
Creating the Save dialog box to specify the drive, directory, and name of a file to save
Compressing and decompressing files with Windows API Runtime Library routines
How to display a user-defined icon in the MessageBox dialog
Using EnumPrinters function to enumerate locally installed printers
How to remove a directory that is not empty
Windows Shell Icons displayed and exported to ICO files (Vista)
Displaying dimmed window behind VFP top-level form
Copying strings through the global memory block
Attaching menu to a top-level form
Using WM_COPYDATA for interprocess communication (VFP9)
Adding and deleting Scheduled Tasks using NetScheduleJob API functions
Adding printer to the list of supported printers for the specified server
Winsock: connecting to a news server (NNTP, port 119)
Deleting files into the Recycle Bin
How to enumerate, add and delete shares on the local computer (WinNT/XP)
Storing content of the Clipboard to a bitmap file
How to prevent users from accessing the Windows Desktop and from switching to other applications
Obtaining heap handles and enumerating memory blocks for the current VFP session (WinNT only)
Class for sound recording
How to print FoxPro form
Extensible Storage Engine class library
URL: splitting into its component parts
Storing screen shot of a form to bitmap file
Retrieving the name of the default printer for the current user on the local computer (Win NT/XP)
Reading entries from Event logs
Adding user-defined items to the Control Menu of VFP form (requires VFP9)
Loading a string resource from an executable file
MapiSendMail class for Visual FoxPro application
Using the ChooseColor function
Adding and deleting User Accounts
Browsing Windows Known Folders (Special Folders)
Converting command-line string to a set of Unicode argument strings (WinNT only)
Subclassing CommandButton control to create BackColor property
Validating the heap of the calling process
How to display the Print property sheet
Reading security permissions for NTFS files and folders
Enumerating ports that are available for printing on a specified server
User Contributed Notes:
There are no notes on this subject.



Copyright © 2001-2013 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.1.55-log), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (107.21.156.140)
13.42 min.Example: 'How to get Special Folders paths'
1.34 hrs.
Function group: 'Terminal Services'
 Example: 'Obtaining addresses for the adapters on the local computer (Win XP/2003/Vista)'
Google
Advertise here!