Is it possible in C++ to read the manifest of an EXE file or DLL whitout loading it?
I read that there are some API functions such as FindResourceEx
, but they require HMODULE
acquired by LoadLibrary
.
(I do have the file handle of the exe or DLL I want to get the manifest from).
Asked
Active
Viewed 795 times
0

Idov
- 5,006
- 17
- 69
- 106
-
Read this link on how to extract it from the .Exe file: http://stackoverflow.com/questions/420852/reading-an-applications-manifest-file – Software_Designer Sep 14 '12 at 09:33
-
But they actually load the library. I don't want to do that. – Idov Sep 14 '12 at 09:39
1 Answers
0
You can also get an HMODULE
from LoadLibraryEx(file, 0, LOAD_LIBRARY_AS_DATAFILE | LOAD_LIBRARY_AS_IMAGE_RESOURCE)
.

MSalters
- 173,980
- 10
- 155
- 350