Does anyone know an API function to extract an icon resource from an executable file that's in RAM (inside, say, a MemoryStream)?
All of the icon-extracting functions I've seen so far depend on the executable file being present on disk. I'd like to extract the icon without having to write the exe to a temp file, and then loading the resources from it.