在 autorun.inf 中使用来自 Windows DLL 的图标

Sam*_*ery 4 windows autorun

我想使用 autorun.inf 将可移动驱动器的图标设置为内置 Windows DLL 中的图标。由于维基百科关于 Autorun.inf 的页面显示可以从 DLL 中获取图标并与索引一起使用,我认为以下方法可行(imageres.dll 的#54 是完整的回收站图标):

[autorun]
label=USB Drive
icon=%WINDIR%\System32\imageres.dll,54
Run Code Online (Sandbox Code Playgroud)

但事实并非如此。当我移除并再次插入设备时,该图标显示为默认的“未找到图标”图标。即使我对我的系统使用绝对路径C:\Windows\System32\imageres.dll,54,它也不起作用。这完全可以做到吗,如果可以,怎么做?

sin*_*800 5

尝试使用“Resource Hacker”提取 .ico ,将 .ico 放到驱动器上,然后使用icon=autorun.inf 中的指向它。

使用 Resource Hacker 应该足够简单了!

资源黑客