Relative Content

Tag Archive for winapirustexe

Extracting executable’s icon in rust

I’m making some code to extract the 64x64px variant of the icon in an exe file.
The following code does work, but it outputs a grayscale 16x16px image.
I’m still a bit new to rust so please excuse the bad code.
I’m using winapi version 0.3.9 with the features: “winuser”, “shellapi”.