Einzelnen Beitrag anzeigen

Benutzerbild von dataspider
dataspider

Registriert seit: 9. Nov 2003
Ort: 04539 Groitzsch
1.350 Beiträge
 
Delphi 11 Alexandria
 
#5

AW: System Icon zu Dateityp ermitteln

  Alt 8. Feb 2018, 10:02
Du meinst mit SHGetFileInfo? In der Hilfe steht dazu:
Zitat:
If the uFlags parameter includes the SHGFI_USEFILEATTRIBUTES flag, this parameter does not have to be a valid file name. The function will proceed as if the file exists with the specified name and with the file attributes passed in the dwFileAttributes parameter. This allows you to obtain information about a file type by passing just the extension for pszPath and passing FILE_ATTRIBUTE_NORMAL in dwFileAttributes.
Direkt die Registry auslesen sollte nur ein absoluter Notbehelf sein.
Danke!
Habe es soeben umgesetzt und es funktioniert!

Frank
Frank Reim
  Mit Zitat antworten Zitat