CasualX / pelite

Lightweight, memory-safe, zero-allocation library for reading and navigating PE binaries.
MIT License
280 stars 42 forks source link

c:\windows\system32\imageres.dll resource/icon problem (and other win dlls with icons) #276

Open cyberpunkbln opened 5 months ago

cyberpunkbln commented 5 months ago

Hello,

when i try to extract icons or group_icons from this dll

c:\windows\system32\imageres.dll C:\Windows\System32\wmploc.DLL

as an example, i have not tested all dlls. Exe functioned very well. For my programm what i have write in have used an example-lnk and there i have used this dlls. Are only examples but i wonder why some dlls are have icons/group_icons and some not.

The newest versions don't have the function group_icons no more and only icons?

Your PeKit shows the same zero icons on resources.

thx

edit: the group iterator in resources have the same state. no groups i resorces on some dlls.


for (name, group) in resources.icons().filter_map(Result::ok)
    {
        // println!("{:?}", group.entries());
        for entry in group.entries()
        {
            println!("{:?}", entry);
        }
    }