Вниз
Скачать: CL | DM;

Получить путь к объекту из ярлыка (lnk)   Найти похожие ветки 

 
IC+   (2008-01-24 16:29) [0]

СОбственно сабж. Помогите новичку. Сильно не пинайте плизз


 
Cj ©   (2008-01-24 16:34) [1]

смотри в сторону IShellLink вродебы...непомню точно...


 
Bujhm   (2008-01-25 11:15) [2]

http://read.excode.ru/art5206p1.html


 
Нафаня   (2008-01-25 12:22) [3]


function GetLnkObjectPath(const LnkFile: string): string;
const
 ValidChars: set of Char = [ #32, #33, #35..#41, #43..#46, #48..#59,
   #61, #64..#123, #125, #126, #160, #192..#255];
var
 hLnk: THandle;
 I: Integer;
 Buffer: array of Char;
 BuffLen: Integer;
 BytesCount: Cardinal;
begin
 Result := "";
 hLnk := CreateFile(PChar(LnkFile), GENERIC_READ, FILE_SHARE_READ, nil, OPEN_EXISTING, 0, 0);
 if hLnk = INVALID_HANDLE_VALUE then
   Exit;
 BuffLen := GetFileSize(hLnk, nil);
 if BuffLen > 0 then
 begin
   SetLength(Buffer, BuffLen);
   I := 0;
   while (ReadFile(hLnk, Buffer[I], 1, BytesCount, nil)) and (BytesCount > 0) do
   begin
     if Buffer[I] in ValidChars then
       Result := Result + Buffer[I]
     else if FileExists(Result) then
       Break
     else
       Result := "";    
     Inc(I);    
   end;
   Finalize(Buffer);
 end;          
 CloseHandle(hLnk);
end;



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.013 c
15-1200226303
SerJaNT
2008-01-13 15:11
2008.02.17
Перетаскивание блоков


15-1200226339
Kostafey
2008-01-13 15:12
2008.02.17
С днем рождения ! 13 января


2-1201007194
Riply
2008-01-22 16:06
2008.02.17
Работа с битовыми масками.


15-1200298824
alexeis
2008-01-14 11:20
2008.02.17
не соответствие клавиш в DOSe


15-1200640786
oxffff
2008-01-18 10:19
2008.02.17
Доведем DPL до кипения от Allen Bauer - The Oracle at Delphi




   Наверх