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
File System            ..msdn    Add comment
DeleteVolumeMountPoint Unmounts the volume from the specified volume mount point.
FindFirstVolume Returns the name of a volume on a computer. This call is used to begin scanning the volumes of a computer.
FindFirstVolumeMountPoint Returns the name of a volume mount point on the specified volume. It is used to begin scanning the volume mount points on a volume.
FindNextVolume Continues a volume search started by a call to the FindFirstVolume function.
FindNextVolumeMountPoint Continues a volume mount point search started by a call to the FindFirstVolumeMountPoint function.
FindVolumeClose Closes the specified volume search handle created with the FindFirstVolume and FindNextVolume call.
FindVolumeMountPointClose Closes the specified mount-point search handle.
GetCompressedFileSize Retrieves the actual number of bytes of disk storage used to store a specified file. If the file is located on a volume that supports compression/sparse files, and the file is compressed, the value obtained is the compressed/sparse size of the specified file
GetDiskFreeSpace [Obsolete] Retrieves information about the specified disk, including the amount of free space on the disk.
GetDiskFreeSpaceEx Retrieves information about the amount of space available on a disk volume: the total amount of space, the total amount of free space, and the total amount of free space available to the user associated with the calling thread.
GetFileSize Retrieves the size of a specified file.
GetFileSizeEx The GetFileSizeEx function retrieves the size of the specified file.
GetLogicalDrives The GetLogicalDrives function retrieves a bitmask representing the currently available disk drives
GetLogicalDriveStrings The GetLogicalDriveStrings function fills a buffer with strings that specify valid drives in the system
GetVolumeInformation Retrieves information about a file system and volume whose root directory is specified.
GetVolumeNameForVolumeMountPoint Takes a volume mount point or root directory and returns the corresponding unique volume name.
GetVolumePathNamesForVolumeName Retrieves a list of path names for the specified volume name.
SetVolumeLabel The SetVolumeLabel function sets the label of a file system volume.
SetVolumeMountPoint Mounts the specified volume at the specified volume mount point.
Code examples:
Enumerating Volumes and Volume Mounting Points (NTFS)
Detecting changes in connections to removable drives (VFP9)
Using File Mapping for enumerating files opened by Visual FoxPro
Disk in drive A:
Disconnecting USB Mass Storage Device programmatically
Passing data records between VFP applications via the Clipboard
Using InternetSetFilePointer when resuming interrupted download from the Internet
Obtaining physical parameters for a drive: sectors, clusters, cylinders...
Setting the volume label
Retrieving list of available disk drives
Basic Volume information
DiskFreeSpace class
Using the GetLogicalDriveStrings
Using GetFileSize
Retrieving information about MS-DOS device names using QueryDosDevice (WinNT only)
Using GetCompressedFileSize (WinNT only)
User Contributed Notes:
Is there Code to display explorer in Details View? | 2006-03-30 14:38:50
I need a getfile() function that will display the files in the DETAIL View sorted by the newest files first.

Anyone know how to do this before I attempt it?
A.M. | 2006-03-30 16:10:51
Sounds like a threat :) Try this for a starter:

oShell = CREATEOBJECT("Shell.Application")
oFolder = oShell.NameSpace("c:\Program Files")
oVerbs = oFolder.Self.Verbs
oVerb = oVerbs.Item(0) && open
oVerb.DoIt
Don Higgins | 2006-03-30 17:31:19
You are the man.... Great job works perfectly.

But how does it work?
Don Higgins | 2006-03-30 17:43:58
Only one item. I need to be able to choose a file like GetFile() allows me to. Is that possible with this?
A.M. | 2006-03-30 19:49:55
Ok, let's move on :) try this

oShell = CREATEOBJECT("Shell.Application")
oFolder = oShell.NameSpace("c:\Program Files")
oItems = oFolder.Items
FOR EACH oItem IN oItems
    WITH oItem
        ? .Name, ", last modified on", .ModifyDate
    ENDWITH
NEXT
Don Higgins | 2006-03-30 23:21:28
Thank you for your help. Should I be placing the file information into a table and put it in a grid so I can choose which one I want?

The code you gave me lists the files but does not allow me to choose one.
A.M. | 2006-03-31 07:57:09
There are some limits of course.

Check functions and related examples in this reference: GetOpenFileName, GetFileNameFromBrowse, SHFileOperation. They may give you some ideas.
Don Higgins | 2006-03-31 12:07:07
Thanks again for steering me in the right direction.


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.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.224.43.96)
19 sec.
Function group: 'Dialog Box'
39 sec.Function: 'FtpCommand'
1.03 min.Function: 'FtpDeleteFile'
1.38 min.Function: 'GetCurrencyFormat'
1.77 min.Function: 'PathBuildRoot'
2.25 min.Function: 'GetPerformanceInfo'
3.18 min.Function: 'AVIFileInfo'
Google
Advertise here!