var I:IShellLink; Ip:IPersistFile; w:win32_find_dataa; pc:array[0..max_path-1] of char; begin I:=CreateComObject(CLSID_ShellLink)as IShellLink; Ip:=I as IPersistFile; Ip.load('c:\mon reperrtoire\monfichier.lnk', STGM_READ ); I.GetPath(pc,max_path,w,SLGP_RAWPATH ); // shellexecute(Handle,'open',pc,'','',sw_showdefault); end;
var I:IShellLink; Ip:IPersistFile; w:win32_find_dataa; pc:array[0..max_path-1] of char; begin I:=CreateComObject(CLSID_ShellLink)as IShellLink; Ip:=I as IPersistFile; Ip.load('c:\mon reperrtoire\monfichier.lnk', STGM_READ ); I.GetPath(pc,max_path,w,SLGP_RAWPATH ); // shellexecute(Handle,'open',pc,'','',sw_showdefault); end;
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question