Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
About Lnkfiles.dll of George Tasker
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00210643
Message ID:
00210741
Views:
34
>>Hi Jean-Rene,
>>
>>Unfortunately, I didn't include the ability to retrieve the Common Desktop folder. It would have to be an added function. If I can find the time, I'll see if I can add this. However, I won't have any way to test it. If I do get it added I'll post back.
>
>I workarond the problem with this:
>
>* 260 is the current value of MAX_PATH
>lcbuffer = SPACE(260)
>lnresult = FindDesktopFolder(0, @lcbuffer)
>lcdesktop = LEFT(lcbuffer, lnresult)
>
>* In case it a Win NT 4.0
>if At("PROFILES\",upper(lcdesktop) ) <>0
> lcdesktop = LEFT(lcdesktop ,At("PROFILES\",upper(lcdesktop) )+8 )+ ;
> "ALLUSE~1\DESKTOP"
>ENDIF

Well, I'm glad you found a workaround. FWIW, I have added a new function (GetCommonFolder) to my copy of the DLL to address this problem. As soon as I get it documented (and correct some of the errata in the current documentation), I'm going to upload it. Unfortunately, I'm so swamped at the moment, it may be awhile.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform