Autor Beitrag
Willie1
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 32

Win 98 SE, Win XP Home
Delphi 5 Prof., Delphi 6/7 Pers.
BeitragVerfasst: Mo 09.01.06 18:32 
Hallo Leute,
wie kann ich die Dateitypbeschreibung, wie sie im Explorer in der Spalte TYP steht in ein eigenes Programm einbinden?

MfG
Willie1
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Mo 09.01.06 19:18 
Hallo,

damit kommst Du an die Informationen:

:!: in uses die Unit shellapi einbinden :!:

Der Code:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
var aSHFI: TSHFileInfo;
begin
  if SHGetFileInfo(PChar('C:\Temp\irgendeine.css'),
                   0,
                   aSHFI,
                   SizeOf(aSHFI),
                   SHGFI_TYPENAME) <> 0 then
    begin
    showmessage(aSHFI.szTypeName);
    end;

Das Ergebnis: Kaskadierendes Stylesheet-Dokument

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
Willie1 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 32

Win 98 SE, Win XP Home
Delphi 5 Prof., Delphi 6/7 Pers.
BeitragVerfasst: Mo 09.01.06 19:45 
Klappt! Danke.

Willie1