#include <persrc.h>
Static Public Methods | |
void | ExtractIcons (PeFile &peFile) |
|
Definition at line 141 of file persrc.cpp. References CollectIconInfos(), WriteIconParam::iconInfos, PeFile::ParseResource(), and WriteIcons(). Referenced by main().
00142 { 00143 // fprintf(stderr,"sizeof hdr %d\n",sizeof(RESDIR)); 00144 // throw std::runtime_error("ferma"); 00145 // parse first for information retrieval (position and size of resources) 00146 WriteIconParam param; 00147 peFile.ParseResource(CollectIconInfos,¶m.iconInfos); 00148 00149 // parse for output files 00150 peFile.ParseResource(WriteIcons,¶m); 00151 } |