Using Win32 functions in Visual FoxPro Image Gallery
Function Groups:
All Functions 1233
Atom 1
Authentication 14
Authorization 6
Bitmap 9
Brush 2
Clipboard 15
Color 1
COM 5
Common Dialog Box 12
Console 12
Coordinate Space and Transformation 9
Cryptography Reference 25
Cursor 5
Data Decompression Library 3
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 20
Mailslot 3
Memory Management 24
Menu 16
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 30
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 33
Shell Lightweight Utility APIs -- misc. functions 2
Shell Lightweight Utility APIs -- Path Functions 18
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
Window 36
Window Class 6
Window Procedure 3
Window Property 3
Window Station and Desktop 7
Windows Controls 8
Windows Multimedia 76
Windows Networking 18
Windows Sockets 2 (Winsock) 37
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)
Using File Mapping for enumerating files opened by Visual FoxPro
Setting the volume label
Disconnecting USB Mass Storage Device programmatically
Retrieving list of available disk drives
Retrieving information about MS-DOS device names using QueryDosDevice (WinNT only)
Obtaining physical parameters for a drive: sectors, clusters, cylinders...
Using InternetSetFilePointer when resuming interrupted download from the Internet
Disk in drive A:
Using the GetLogicalDriveStrings
Using GetFileSize
Using GetCompressedFileSize (WinNT only)
Basic Volume information
Passing data records between VFP applications via the Clipboard
DiskFreeSpace class
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-2010 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.0.85), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (38.107.191.106)
32.47 min.
Function group: 'Error Handling'
37.18 min.Function: 'mixerClose'
Function group: 'Windows Multimedia'
39.15 min.Function: 'waveInGetErrorText'
Function group: 'Windows Multimedia'
44.53 min.Function: 'SetHandleInformation'
5 day(s)Solution: 'Extended MessageBox library (assembly) for .NET'
Google
Advertise here!