How to create a file shortcut (*.lnk file) on desktop in Windows?

前端 未结 3 2309
清歌不尽
清歌不尽 2021-02-08 03:39
function GetDesktopFolder: string;
var
  buf: array[0..MAX_PATH] of Char;
  pidList: PItemIDList;
begin
  Result := StrNoDesktopFolderFo;
  SHGetSpecialFolderLocation(Ap         


        
3条回答
  •  广开言路
    2021-02-08 04:07

    Functions for obtaining special folder locations, creating shortcuts (links), and much much more can be found in the freeware dsiWin32 library of 100+ procedures and functions. Download it at http://gp.17slon.com/gp/dsiwin32.htm and thanks to Primoz Gabrijelcic and the Delphi-SI community for making it available.

    Max

提交回复
热议问题