0

Windows 10 has new pin icons in the Jump List. Black and white for different themes.
Old Windows 7 pin icons stayed inside imageres.dll, ID 5100, 5101.

Where are new icons stored? How get they with WinAPI?

enter image description here

Asaq
  • 331
  • 3
  • 13

2 Answers2

1

Since Windows 10 version 1903, icon resource files have been relocated to: C:\Windows\SystemResources\imageres.dll.mun

There is now a new extension for these files .mun instead of .mui (which still exist in system32 and syswow64 sub folders.

Also see the answer to the question Can I trust imageres.dll system icons indexes?:

The correct way to get the icons is to use SHGetStockIconInfo. It will tell you where the icon is in the current version of Windows.

If you want the system's current folder icons (which may not be the standard ones due to user customization), use SHGetFileInfo.

Community
  • 1
  • 1
Strive Sun
  • 4,935
  • 1
  • 4
  • 19
  • imageres.dll.mun doesn't contain that icons. `SHGetStockIconInfo` doesn't have SIID for that icons. – Asaq Apr 08 '20 at 13:11
1

Icons have traditionally been raster images. The benefit of raster images is, that they are blazingly fast to render. That speed comes with a downside, namely that raster images only look good at a narrow range of pixel densities. That was great for as long as most displays had a pixel density of 96 PPI (pixels per inch). With pixel densities increasing, raster images stopped being as useful as they used to be. On high-density displays, icons would either render too small, or had to be scaled up with all sorts of visual artifacts.

To address this, Windows 8 introduced font-based icons as the Windows UI Symbol font, that was superseded in Windows 10 by the Segoe MDL2 Assets font. Fonts are vector-based, and can be scaled across a wide range without (or very little) visual artifacts.

While I have not verified, whether the Windows Shell actually does use font icons, the icons you are looking for are available in the Segoe MDL2 Assets font with Unicode code points in the private use area:

  • U+E718 ("Pin")

    Pin font icon

  • U+E77A ("Unpin")

    Unpin font icon

IInspectable
  • 35,521
  • 8
  • 69
  • 148