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 671 times
0
Idov
- 4,870
- 14
- 63
- 103
-
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
- 167,472
- 9
- 150
- 334