How to locate Windows special folder locations (194702)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
- Microsoft Visual FoxPro for Windows 7.0
- Microsoft Visual FoxPro 8.0 SP1
- Microsoft Visual FoxPro 9.0 Professional Edition
This article was previously published under Q194702 SUMMARY
Microsoft Windows 9x and Windows NT make use of many operating system special
folders. These folders represent specific locations for application data,
users settings, etc. It is possible to programmatically locate these folder
locations using the SHGetSpecialFolderPath API function.
The following program displays the full special folder path to the Windows
desktop. You can alter the program to show the full path of any of the
special folders by passing the appropriate special folder constant to the
SHGetSpecialFolderPath API call.
This program will only run on Windows 98 or Windows 95 and Windows NT
systems that are configured with the Windows Desktop Update. To install the Windows
Desktop Update, visit the following Microsoft Web site:
You do not have install Windows Desktop update when you are running the code on a computer that is running Windows 2000, Windows XP, or Windows 2003 Server.
Modification Type: | Major | Last Reviewed: | 2/21/2005 |
---|
Keywords: | kbhowto KB194702 kbAudDeveloper |
---|
|