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:
00210720
Views:
53
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform