https://learn.microsoft.com/en-us/windows/win32/api/shellapi/nf-shellapi-extracticonexa
ExtractIconExA function (shellapi.h) - Win32 apps | Microsoft Learn
The ExtractIconEx function creates an array of handles to large or small icons extracted from the specified executable file, DLL, or icon file. (ANSI)
functionhappsmicrosoftlearn