Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I retrieve the path to my documents folder
Message
From
06/06/2003 15:32:59
 
 
To
06/06/2003 14:54:34
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00797361
Message ID:
00797445
Views:
60
>Gunnar,
>
>Thanks.
>
>Re:
>>if you are still interested in the 'SHGetFolderPath' version i can post some of my class.
>
>Yes that would be helpful. Also, if you have a copy of the .h file that would be helpful as well.
>
>I don't know re: the compatibility with win98.
DECLARE INTEGER SHGetFolderPath ;
   IN SHFOLDER.DLL ;
   INTEGER hwndOwner, ;
   INTEGER nFolder, ;
   INTEGER hToken, ;
   INTEGER dwFlags, ;
   STRING @ pszPath
DECLARE INTEGER GetActiveWindow ;
   IN WIN32API

#DEFINE CSIDL_COMMON_DOCUMENTS          46

LOCAL ;
   lcPath

* *** windows system folder
lcPath = REPL(CHR(0),261)
=SHGetFolderPath(GetActiveWindow(), CSIDL_COMMON_DOCUMENTS, 0, 0, @lcPath)
?ADDBS(LEFT(lcPath,AT(CHR(0),lcPath)-1))
the 'shlfolder.h' i've put together myself (since i coulldn't find it anywhere). you can get some declare's in the msdn help under
Locating the Standard Folders Where Data Belongs
and
Query the Registry for Directory Names
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform