Einzelnen Beitrag anzeigen

Benutzerbild von uligerhardt
uligerhardt

Registriert seit: 19. Aug 2004
Ort: Hof/Saale
1.735 Beiträge
 
Delphi 2007 Professional
 
#4

AW: System Icon zu Dateityp ermitteln

  Alt 8. Feb 2018, 09:18
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.
Uli Gerhardt
  Mit Zitat antworten Zitat