Windows PE Resources

2019-01-26 11:38发布

there are many windows PE resource viewers programs. But how do they work? Do they decode function calls to winapi, or does PE have some section for GUI information? Like Android has XML GUI definitons? Thanks.

2条回答
贼婆χ
2楼-- · 2019-01-26 12:18

There is an API for resources management. Check out Enumerating Resources.

In certain situations application developers may want to discover the resource contents of an unknown Portable Executable (PE) module. The Windows SDK provides resource enumeration functions that enable an application to obtain lists of resource types, names, and languages in a specified module.

查看更多
在下西门庆
3楼-- · 2019-01-26 12:26

There are probably different implementation strategies, so it's not possible to answer this universally for all tools.

The PE file format specification is publicly available. It specifies the section structure of a PE file, how to find the .rsrc section in the file, and how to extract individual resources from that section. The individual resource formats are also documented on MSDN. For example, the dialog GUI definitions are defined in the DLGTEMPLATE structure.

查看更多
登录 后发表回答