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
Handle and Object            ..msdn    Add comment
CloseHandle The CloseHandle function closes an open object handle.

The CloseHandle function closes handles to the following objects:
        - Access token
        - Communications device
        - Console input
        - Console screen buffer
        - Event
        - File
        - File mapping
        - Job
        - Mailslot
        - Mutex (MutuallyExclusive)
        - Named pipe
        - Process
        - Semaphore
        - Socket
DuplicateHandle The DuplicateHandle function duplicates an object handle.
GetHandleInformation The GetHandleInformation function retrieves certain properties of an object handle.
SetHandleInformation Sets certain properties of an object handle.
Code examples:
Running MSDOS Shell as a child process with redirected input and output (smarter RUN command)
Obtaining names and positions for shortcuts located on the Windows Desktop
Subclassing CommandButton control to create BackColor property
Vertical Label control
Storing content of the Clipboard to a bitmap file
Moving shortcut to a specified position on the Windows Desktop
Enumerating Processes -- WinNT
Passing data records between VFP applications via the Clipboard
Creating a console window for Visual FoxPro application
Reading and setting system access privileges for the current process
How to enable the SE_SHUTDOWN_NAME privilege for the application
How to load a user profile
Enumerating Processes -- Win9*
How to find when the application started
Storing screen shot of a form to bitmap file
How to suspend or hibernate your system
Peer-to-peer LAN messenger built with Mailslot API functions
Using shared memory to exchange data between applications (processes)
How to prevent users from accessing the Windows Desktop and from switching to other applications
Terminating all running applications from a VFP program
How to check whether the system is 32-bit or 64-bit
How to Start a Process as Another User (NT/XP/2K)
How to convert a bitmap file to monochrome format (1 bpp)
Memory usage info for current VFP session (WinNT only)
Using InternetSetFilePointer when resuming interrupted download from the Internet
Reading and setting the priority class values for the current process and thread
Using named pipes for interprocess communication
Using the Semaphore object to allow only one instance of VFP application running
Obtaining physical parameters for a drive: sectors, clusters, cylinders...
Monitoring changes occurring within a directory
Copying files as a transacted operation (Vista)
Testing serial ports
Setting the date and time that a file was created
Using the Semaphore object
How to make application automatically close all documents it opened
Comparing file times
Starting external program from VFP and waiting for its termination
Locking and unlocking file of a VFP table
Creating a mailslot
Using mailslots to send messages on the network
HOWTO: Use the Win32 API to Access File Dates and Times
Using the CreateFile
Retrieving file information for the VFP executable running
Using GetFileSize
Using File Mapping for enumerating files opened by Visual FoxPro
How to set Creation Date/Time for a folder (WinNT)
Using the DeleteFile
How to run FoxPro application under different user name (impersonating user)
Obtaining I/O counts for the current process
Creating a file, then moving it to another destination
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.Function: 'CreateNamedPipe'
46 sec.Function: 'mixerSetControlDetails'
1.12 min.Function: 'GetRTTAndHopCount'
1.5 min.Function: 'GetSysColor'
1.87 min.Function: 'GetPhysicalMonitorsFromHMONITOR'
2.27 min.
Function group: 'HTTP Functions (WinHTTP)'
2.65 min.Function: 'GetFileVersionInfo'
3.12 min.Function: 'ReadFile'
3.53 min.Function: 'GdipCreateBitmapFromGraphics'
4 min.Function: 'inet_addr'
Advertise here!