Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I retrieve the path to my documents folder
Message
De
06/06/2003 16:06:42
 
 
À
06/06/2003 15:32:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00797361
Message ID:
00797473
Vues:
69
OK,

Thanks! I'll check it out.

>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform