IShellLink::Resolve

Syntax:

Resolve (HWND hwnd, UINT fFlags);

Parameters:

Description:

Resolves a shortcut. The system searches for the shortcut object and updates the shortcut path and its ID list, if necessary. If the system needs to display a dialog box asking the user for more information, it uses the handle to the window passed in the hwnd parameter as the parent window of the dialog box. The supported flags for this member function are listed on the following page.

SLR_NO_UI Directs the system not to display a dialog box if it cannot resolve the shortcut.
SLR_UPDATE When the Resolve member function is called, the system marks a shortcut as “dirty” if the object the shortcut points to has been changed (perhaps its location or size has changed, for instance). This flag directs the system to save the shortcut if the shortcut object has changed. The developer is thus saved the step of calling IPersistFile::IsDirty to determine whether the shortcut has changed.