[英]How to access PE resources using Windows Native API?
I have a Windows native application that contain embedded resources and I'd like to access them using the native API . 我有一个包含嵌入式资源的Windows本机应用程序 ,我想使用本机API访问它们。 Are there native functions that handle resources (something similar to FindResource / LoadResource ) or I will have to create my own PE reader to extract them? 是否有处理资源的本机函数(类似于FindResource / LoadResource )或者我必须创建自己的PE读取器来提取它们?
Ntdll exports LdrFindResource_U
and LdrAccessResource
that are almost counterparts of FindResource and LoadResource , respectively. Ntdll分别导出LdrFindResource_U
和LdrAccessResource
,它们几乎是FindResource和LoadResource的对应物。 You'll need in addition a counterpart of GetModuleHandle to use them. 此外,您还需要GetModuleHandle的副本来使用它们。 Wine source (specially resource.c and module.c ) can be used as documentation of these functions. Wine源(特别是resource.c和module.c )可用作这些函数的文档。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.