SHGetPathFromIDList ()

From ISXKB

Jump to: navigation, search

This article shows how to use the Windows API function SHGetPathFromIDList () with Inno Setup.

Declaration

The following declaration is required in a [Code] section:

type
  BROWSEINFO = record
    hOwner : cardinal;
    pidlRoot : cardinal;
    pszDisplayName : string;
    lpszTitle : string;
    ulFlags : cardinal;
    lpfn : cardinal;
    lParam : cardinal;
    iImage : cardinal;
  end;

function SHGetPathFromIDList (pidl : cardinal; pszPath : string): cardinal;
 external 'SHGetPathFromIDListA@shell32.dll stdcall';

SHGetPathFromIDList () at MSDN

Personal tools
Ads: