Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing Destop Icons
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00231368
Message ID:
00232823
Views:
12
>The lnkfiles.dll comes with an old style windows help file. All of the functions are documented in VFP syntax. I got very tired of translating from VB with some of other help files that are available for dll calls, so...< g >
>
>You're quite welcome. If he hasn't already, perhaps Ed Rauh will fill you in on the WSH side. Both my dll and the WSH have their place. Depends on the usage circumstances.

George,

Got it working... Thanks. Didn't take long.


hWnd = 0
lpszlinkname = "C:\WINDOWS\DESKTOP\WM PATCH 6.LNK"
DECLARE INTEGER GetCmndLineInfo IN LNKFILES.DLL;
INTEGER hWnd, STRING @lpszLinkName, STRING @lpszPath


* 260 is the current value of MAX_PATH
lcbuffer = SPACE(260)
* lclinkfile is the file name of the link file
lcLinkFile = "C:\WINDOWS\DESKTOP\WM PATCH 6.LNK"
lnresult = GetCmndLineInfo(0, @lclinkfile, @lcbuffer)

lccmndline = LEFT(lcbuffer, lnresult)

IF FILE(LCCMNDLINE)
DELETE FILE (LCCMNDLINE)
ENDIF


Robert
Previous
Reply
Map
View

Click here to load this message in the networking platform