C++
ACAD_PORT Adesk::Boolean acedCreateShortcut( void* pvHwndParent, const ACHAR* szLinkPath, const ACHAR* szObjectPath, const ACHAR* szDesc );
File
acedinet.h
Description
This function creates a Windows shell link (in other words, a shortcut) as specified in the parameter szLinkPath.
Returns Adesk::kTrue on success; Adesk::kFalse on failure.
Parameters
Parameters | Description |
---|---|
pvHwndParent | Input pointer to a window handle (of type HWND) that will be used as the parent window in case we need to display a message box or an animation dialog; this value should not be NULL |
szLinkPath | Input full path to the .lnk file that will be created as the Windows-style shortcut; note that the ".lnk" extension is required |
szObjectPath | Input full path to the filesystem object that the shortcut will point to |
szDesc | Input descriptive string for the shortcut; can have any arbitrary value except NULL |