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
File Management            ..msdn    Add comment
CopyFile This function copies an existing file to a new file
CopyFileTransacted Copies an existing file to a new file as a transacted operation, notifying the application of its progress through a callback function.
CreateDirectory Creates a new directory. If the underlying file system supports security on files and directories, the function applies a specified security descriptor to the new directory.
CreateFile This function creates, opens, or truncates a file, communications resource, disk device, or console. It returns a handle that can be used to access the object. It can also open and return a handle to a directory.

Use the CloseHandle function to close an object handle returned by CreateFile
CreateFileTransacted Creates or opens a file, file stream, or directory as a transacted operation. The function returns a handle that can be used to access the object.
CreateHardLink Establishes a hard link between an existing file and a new file. This function is only supported on the NTFS file system.
CreateSymbolicLink Creates a symbolic link.
DeleteFile The DeleteFile function deletes an existing file
DeleteFileTransacted Deletes an existing file as a transacted operation.
FindClose The FindClose function closes the specified search handle. The FindFirstFile and FindNextFile functions use the search handle to locate files with names that match a given name.
FindCloseChangeNotification Stops change notification handle monitoring.
FindFirstChangeNotification Creates a change notification handle and sets up initial change notification filter conditions.

A wait on a notification handle succeeds when a change matching the filter conditions occurs in the specified directory or subtree.
FindFirstFile The FindFirstFile function searches a directory for a file whose name matches the specified file name. FindFirstFile examines subdirectory names as well as file names.
FindNextChangeNotification Requests that the operating system signal a change notification handle the next time it detects an appropriate change.
FindNextFile The FindNextFile function continues a file search from a previous call to the FindFirstFile function.
FlushFileBuffers Flushes the buffers of a specified file and causes all buffered data to be written to a file.
GetBinaryType Determines whether a file is executable, and if so, what type of executable file it is. That last property determines which subsystem an executable file runs under.
GetCurrentDirectory The GetCurrentDirectory function retrieves the current directory for the current process.
GetDriveType The GetDriveType function determines whether a disk drive is a removable, fixed, CD-ROM, RAM disk, or network drive
GetFileAttributes Retrieves attributes for a specified file or directory.
GetFileAttributesEx Retrieves attributes for a specified file or directory.
GetFileInformationByHandle The GetFileInformationByHandle function retrieves file information for a specified file.
GetFileType The GetFileType function retrieves the file type for the specified file.
GetFullPathName Retrieves the full path and file name of a specified file.
GetLongPathName The GetLongPathName function converts the specified path to its long form. If no long path is found, this function simply returns the specified name.
GetShortPathName Retrieves the short path form of a specified input path
GetTempFileName The GetTempFileName function creates a name for a temporary file.

The specified integer can be nonzero, in which case, the function creates the file name but does not create the file. If you specify zero for the integer, the function creates a unique file name and creates the file in the specified directory.
GetTempPath The GetTempPath function retrieves the path of the directory designated for temporary files
LockFile Locks a region in an open file. Locking a region prevents other processes from accessing the region.
MoveFile The MoveFile function moves an existing file or a directory, including its children.

To specify how to move the file, use the MoveFileEx function
MoveFileTransacted Moves an existing file or a directory, including its children, as a transacted operation.
OpenFile The OpenFile function creates, opens, reopens, or deletes a file
QueryDosDevice Retrieves information about MS-DOS device names.
ReadDirectoryChangesW The ReadDirectoryChangesW function retrieves information describing the changes occurring within a directory.
ReadFile Reads data from a file, starting at the position indicated by the file pointer.
RemoveDirectory The RemoveDirectory function deletes an existing empty directory. To recursively delete files and subdirectories in a directory, use the SHFileOperation function.
RemoveDirectoryTransacted Deletes an existing empty directory as a transacted operation.
ReplaceFile Replaces one file with another file, with the option of creating a backup copy of the original file.
SearchPath The SearchPath function searches for the specified file.
SetCurrentDirectory The SetCurrentDirectory function changes the current directory for the current process.
SetEndOfFile Sets the physical file size for the specified file to the current position of the file pointer.
SetFileAttributes Sets a file"s attributes.
SetFilePointer The SetFilePointer function moves the file pointer of an open file.
SetFilePointerEx Moves the file pointer of the specified file.
SetSearchPathMode Sets the per-process mode that the SearchPath function uses when locating files.
UnlockFile Unlocks a region in an open file. Unlocking a region enables other processes to access the region.
WriteFile The WriteFile function writes data to a file and is designed for both synchronous and asynchronous operation.
_lclose Closes the specified file so that it is no longer available for reading or writing.
_lopen Opens an existing file and sets the file pointer to the beginning of the file.
Code examples:
Using InternetSetFilePointer when resuming interrupted download from the Internet
Using named pipes for interprocess communication
Peer-to-peer LAN messenger built with Mailslot API functions
A procedure for setting file times
Storing screen shot of a form to bitmap file
Using File Mapping for enumerating files opened by Visual FoxPro
Storing content of the Clipboard to a bitmap file
Vertical Label control
Monitoring changes in a directory
Passing data records between VFP applications via the Clipboard
Using the GetTempFileName
Running MSDOS Shell as a child process with redirected input and output (smarter RUN command)
Subclassing CommandButton control to create BackColor property
Monitoring changes occurring within a directory
Locking and unlocking file of a VFP table
Detecting changes in connections to removable drives (VFP9)
Disconnecting USB Mass Storage Device programmatically
How to convert a bitmap file to monochrome format (1 bpp)
Building a tree of subdirectories for a given path using FindFile functions
Retrieving file information for the VFP executable running
How to set Creation Date/Time for a folder (WinNT)
Using mailslots to send messages on the network
Mapping and disconnecting network drives
Changing file attributes
Creating a unique filename based on existing filename
Using the DeleteFile
Current directory of the application
Testing serial ports
Setting the date and time that a file was created
Retrieving list of available disk drives
Converting path to original case
Comparing file times
Converting long file names to the short format and vice versa
Using GetBinaryType (WinNT only) to determine the type of an executable file
How to access a file using not its name but an alias (hard link)
Creating a file, then moving it to another destination
Obtaining physical parameters for a drive: sectors, clusters, cylinders...
HOWTO: Use the Win32 API to Access File Dates and Times
Retrieving information about MS-DOS device names using QueryDosDevice (WinNT only)
Using GetFileSize
Using the CreateFile
Copying files as a transacted operation (Vista)
Displaying the drive type value
How to test file attributes (key method for FileExists and DirectoryExists routines)
Using the GetLogicalDriveStrings
Using the CopyFile
Creating a folder
Searching for the specified file using the SearchPath
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.35), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
22 sec.Function: 'JetBeginSession'
Function group: 'Extensible Storage Engine (ESE, Jet Blue)'
Advertise here!