Function of shortcut

zhaozj2021-02-16  41

Function of shortcut

E271828@163.net

use shlobj, comobj, activex; // check DEL6VCL.HLP be found olecheck belonging comobjprocedure link (const appname, savepath: string); varsl: IShellLink; pf: IPersistFile; lnkname: widestring; beginolecheck (cocreateinstance (CLSID_ShellLink, nil, CLSCTX_INPROC_SERVER , ISHELLLINK, SL); PF: = SL As IPersistFile; Olecheck (sl.setpath)); lnkname: = SavePath '/' ChangeFileExt (ExtractFileName (AppName), '. Lnk'); PF. Save (PWIDECHAR (LNKNAME), TRUE; END;

转载请注明原文地址:https://www.9cbs.com/read-24530.html

New Post(0)