VB的例子:
调用DLL函数CreateShotcut(),位于system/shorotcut.dll的DLL中。 声明是这样的:
Private declare function createshotcut lib"shortcut.dll" _
(byval strsorcefile$,byval strlinkfile$,byval strinitdir $ , _
byval intcmdshow %,byval strinconpath$ , _
byval lngiconindex as long) as long 调用例如:
if createshotcut(strWinDir &"/notepad.exe",shortcutpath,_
"c:/",vbnullstring,vbmaximizedfocus,vbnullstring,1) _ then ....