如何使用Windows原生API访问PE资源?

How to access PE resources using Windows Native API?

我有一个 Windows native application that contain embedded resources and I'd like to access them using the native API. Are there native functions that handle resources (something similar to FindResource/LoadResource) 或者我必须创建自己的 PE reader 来提取它们?

Ntdll 导出 LdrFindResource_ULdrAccessResource 几乎是 FindResource and LoadResource, respectively. You'll need in addition a counterpart of GetModuleHandle to use them. Wine source (specially resource.c and module.c 的对应物)可以用作这些功能的文档。