SHGetPathFromIDList ()

From ISXKB

Revision as of 00:11, 25 December 2007 by Markus (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
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: