Share

acedResolveShortcut

C++

ACAD_PORT bool acedResolveShortcut(
    void* pvHwndParent, 
    const ACHAR* szLinkPath, 
    ACHAR* szObjectPath
);

File

acedinet.h

Description

Deprecated. This function resolves Windows shell links (in other words, shortcuts and returns the path to the underlying object (the inverse of acedCreateShortcut()).

Note: This overload does not take a size arg and is deprecated. Use the other overload instead.

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 resolved as the Windows-style shortcut; note that the ".lnk" extension is required
szObjectPath Output a char buffer that receives the full path of the filesystem object to which the shortcut points; it is the caller's responsibility to provide a sufficiently large buffer

Previous Declaration

ACAD_PORT Adesk::Boolean acedResolveShortcut(void* pvHwndParent, const ACHAR* szLinkPath, ACHAR* szObjectPath);

Use Instead

ACAD_PORT bool acedResolveShortcut(void* pvHwndParent, const ACHAR* szLinkPath, AcString & sObjectPath);

Was this information helpful?