Autor Beitrag
Martok
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 3661
Erhaltene Danke: 604

Win 8.1, Win 10 x64
Pascal: Lazarus Snapshot, Delphi 7,2007; PHP, JS: WebStorm
BeitragVerfasst: Fr 23.05.14 22:02 
Moin!

praktisch alle Icons, die der Windows Explorer verwendet, lassen sich über den Registry-Schlüssel HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\Shell Icons konfigurieren. Diverse Quellen behaupten nun, dass die entsprechende ID in shell32.dll das Standardicon wäre - das stimmt aber seit Windows XP nicht mehr, neuere Defaults wurden seit Vista "woanders" untergebracht.

Einfaches Beispiel: Laufwerksicons
ss_2014-05-23_at_095554

Oder auch das Default-Icon für unbekannte Dateien.

Wie komme ich also an diese neuen Icons ran? Ich weiß, dass "special folder" an sich z.B. über die Einträge in HKCR geregelt werden, aber auch dort sind nicht alle der spannenden Icons. Das das Remapping über den besagten Key ist aber immer noch beteiligt, so dass das ganz schön viel gestapelt erscheint.

(Oh und wenn jemand noch weitere Speicherorte für Icons kennt, nehm ich die auch gerne ;) )

Viele Grüße,
Martok
Einloggen, um Attachments anzusehen!
_________________
"The phoenix's price isn't inevitable. It's not part of some deep balance built into the universe. It's just the parts of the game where you haven't figured out yet how to cheat."
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19272
Erhaltene Danke: 1740

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Fr 23.05.14 22:48 
Die befinden sich in der imageres.dll, ebenfalls im Systemordner.
Martok Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 3661
Erhaltene Danke: 604

Win 8.1, Win 10 x64
Pascal: Lazarus Snapshot, Delphi 7,2007; PHP, JS: WebStorm
BeitragVerfasst: Fr 23.05.14 23:08 
Ah, cool :)

Bleibt noch die Frage nach dem Mapping - da passt nun die ResourcenID gar nicht mehr.

Edit (des Edits, jetzt mit Erklärung):
Suche im MSDN SHGETSTOCKICONINFO ist die Funktion der Wahl - diese gibt mir den finalen Pfad, nach Ersetzung durch den Registry-Schlüssel. Die unmodifizierten Defaults kann man wohl nicht ermitteln...

_________________
"The phoenix's price isn't inevitable. It's not part of some deep balance built into the universe. It's just the parts of the game where you haven't figured out yet how to cheat."