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
Shell Functions            ..msdn    Add comment
AssocQueryString Searches for and retrieves a file or protocol association-related string from the registry.
DllGetVersion Implemented by many of the Microsoft® Windows® Shell dynamic-link libraries (DLLs) to allow applications to obtain DLL-specific version information.
DragAcceptFiles Registers whether a window accepts dropped files.
DragFinish Releases memory that the system allocated for use in transferring file names to the application.
DragQueryFile Retrieves the names of dropped files that result from a successful drag-and-drop operation.
DragQueryPoint Retrieves the position of the mouse pointer at the time a file was dropped during a drag-and-drop operation.
FileIconInit Reinitializes the system image list.
FindExecutable Retrieves the name of and handle to the executable (.exe) file associated with the specified file name.
GetFileNameFromBrowse This function creates an Open dialog box that lets the user specify the drive, directory, and name of a file to open.
GetMenuContextHelpId Retrieves the Help context identifier associated with the specified menu.
GetWindowContextHelpId The GetWindowContextHelpId function retrieves the help context identifier, if any, associated with the specified window.

Windows NT only
InetIsOffline Determines whether or not the system is connected to the Internet.
IsUserAnAdmin Tests whether the current user is a member of the Administrator"s group.
LoadUserProfile Loads the specified user"s profile. The profile can be a local user profile or a roaming user profile.
PathMakeUniqueName Creates a unique path name from a template.
PathYetAnotherMakeUniqueName Creates a unique filename based on an existing filename.
RealDriveType Determines the drive type based on the drive number.
RestartDialog Displays a dialog box that prompts the user to restart Microsoft® Windows®. When the user clicks the button, the function calls ExitWindowsEx to attempt to restart Windows.
SHAddToRecentDocs Adds a document to the Shell"s list of recently used documents or clears all documents from the list.
SHBrowseForFolder Displays a dialog box that enables the user to select a Shell folder.
SHCreateDirectory Creates a folder.
ShellAbout Displays a Shell About dialog box
ShellExecute Performs an operation on a specified file.
ShellExecuteEx Performs an action on a file.
Shell_GetImageLists Retrieves system image lists for large and small icons -- undocumented.
Shell_NotifyIcon Sends a message to the taskbar"s status area.
SHEmptyRecycleBin Empties the Recycle Bin on the specified drive.
SHFileOperation Copies, moves, renames, or deletes a file system object.
SHFormatDrive The SHFormatDrive API provides access to the Shell"s format dialog box. This allows applications that want to format disks to bring up the same dialog box that the Shell uses for disk formatting.
SHGetFileInfo Retrieves information about an object in the file system, such as a file, a folder, a directory, or a drive root.
SHGetFolderPath Takes the CSIDL of a folder and returns the pathname.
SHGetPathFromIDList Converts an item identifier list to a file system path.
SHGetSpecialFolderLocation Retrieves a pointer to the ITEMIDLIST structure of a special folder.
SHGetStockIconInfo Retrieves information about system-defined Shell icons.
SHParseDisplayName Translates a Shell namespace object"s display name into an item identifier list and returns the attributes of the object. This function is the preferred method to convert a string to a pointer to an item identifier list (PIDL).
SHQueryRecycleBin Retrieves the size of the Recycle Bin, and the number of items in it, on the specified drive.
SHSimpleIDListFromPath Returns a pointer to an ITEMIDLIST structure when passed a path.
UnloadUserProfile Unloads a user"s profile that was loaded by the LoadUserProfile function.
WinHelp The WinHelp function starts Windows Help (WINHELP.EXE) and passes additional data indicating the nature of the help requested by the application
Code examples:
Browsing Windows Known Folders (Special Folders)
Displaying system dialog that selects a folder
Dragging files from Explorer window and dropping them on FoxPro control (requires VFP9)
How to load a user profile
Accessing the list of Windows Recent Documents
Windows Shell Icons displayed and exported to ICO files (Vista)
Creating a unique filename based on existing filename
Retrieving window and menu help context identifiers
System Image List Viewer
Storing content of the Clipboard to a bitmap file
Mapping and disconnecting network drives
Detecting changes in connections to removable drives (VFP9)
Displaying icons in the system tray (VFP9)
How to control Adobe Reader 9.0 (SDI mode) from VFP application
How to display the Properties dialog box for a file (ShellExecuteEx)
Creating an Open dialog box to specify the drive, directory, and name of a file to open (Shell32 version)
How to display Windows On-Screen Keyboard
GDI+: creating a gradient
How to find the application associated with a file name
Using FoxTray ActiveX control: System Tray Icon and menu attached to VFP form
How to remove a directory that is not empty
Finding the application, icon and friendly names associated with a file name
Displaying the associated icons and descriptions for files and folders
How to access a file using not its name but an alias (hard link)
How to make application automatically close all documents it opened
Accessing Adobe Reader 7.0 main menu from VFP application
Using Shell for performing operations on files
Reading the structure of VFP main menu
GDI+: cropping images
GDI+: creating scaled copy of image file
Disk in drive A:
Displaying the drive type value
Accessing Windows Control Panel from VFP Application
Accessing examples contained in this reference from a VFP application
Using the RestartDialog function -- restarting Windows
Deleting files into the Recycle Bin
How to get the path to a Special Folder
Saving local machine ODBC Registry Entries to XML file
Accessing examples contained in this reference through Web Services
How to empty the Recycle Bin
GDI+: Drawing a Pie Chart
Obtaining Shell32.dll version
Displaying standard progress dialog box when copying files
Creating a folder
How to retrieve the number of objects stored in the Recycle Bin
GDI+: converting text strings to images and saving in a graphics file
Retrieving current user for the process
Determining whether or not the system is connected to the Internet
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 (
19 sec.Function: 'FtpRemoveDirectory'
37 sec.Function: 'RegCreateKeyEx'
56 sec.Function: 'SQLGetEnvAttr'
1.23 min.Function: 'PathFindOnPath'
1.55 min.Function: 'FtpPutFile'
1.85 min.Function: 'URLDownloadToCacheFile'
2.17 min.Function: 'GdipCreateTexture'
2.45 min.
Function group: 'Network Management'
2.77 min.Function: 'WNetGetUser'
3.02 min.Function: 'CeCloseHandle'
Advertise here!