JCL Help:ShellLinkResolve@string@TShellLink

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Resolves a shortcut.


Pascal

 function ShellLinkResolve(const FileName: string; out Link: TShellLink): HRESULT; overload;
function ShellLinkResolve(const FileName: string; out Link: TShellLink; const ResolveFlags: Cardinal): HRESULT; overload;


Parameters

Parameters Description
const FileName: string Fully qualified name of the shortcut file to resolve.
ShellLink TShellLink record which retrieves the details about the specified shortcut.


Return Value

If the function succeeds it returns S_OK. If it fails it returns an OLE error code.


Description

ShellLinkResolve resolves the ShellLink specified by FileName parameter and returns information about it in the ShellLink parameter. On success the return value is S_OK, on failure an OLE error code.


See Also

ShellLinkCreate ShellLinkCreateSystem ShellLinkFree TShellLink


About

Unit

JclShell


Donator

Marcel van Brakel


Contributors

Rik Barker


Notes

You must free the TShellLink record by calling ShellLinkFree


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page