#42002/9/28 0:58:04
用budapi.u32吧,简单实用的两个函数baMakeShortcut和baMakeShortcutEx:
Result := baMakeShortcut( FileName , Path , Title )
Creates a Win 95/NT shorcut.
FileName is the file the shortcut points to.
Path is the location for the shortcut to be created in.
Title is the name to give the shortcut.
Returns 1 if made successfully, else 0.
Only works in 32 bit.
Result := baMakeShortcutEx( FileName, Path, Title, Args, WorkDir, Icon, IconNumber, Hotkey, State )
Creates a Win 95/NT shorcut.
FileName is the file the shortcut points to.
Path is the location for the shortcut to be created in.
Title is the name to give the shortcut.
Args is the arguments for the shortcut.
WorkDir is the working dirctory.
Icon is the name of the icon file.
IconNumber is the number of the Icon to use.
Hotkey is the virtual key code of a hot key.
State is the state of the window.
Returns 1 if made successfully, else 0.
Only works in 32 bit.