Click to See Complete Forum and Search --> : Resource access problem..


Tyrion
June 2nd, 2004, 10:06 PM
Hi,

From what I understand, there are functions available that will let you access resources (EnumResourceNames, EnumResourceTypes, etc) but they all require a handle to a running module. Is there any way to use these functions to access resources w/o running the file with the resources? Ofcourse parsing would work but I'd rather not go that route... Thanks for any help given :)

mdmd
June 2nd, 2004, 11:20 PM
Originally posted by Tyrion
From what I understand, there are functions available that will let you access resources (EnumResourceNames, EnumResourceTypes, etc) but they all require a handle to a running module.
Where'd you read that ? The HMODULE can come from LoadLibrary()

NoHero
June 3rd, 2004, 02:49 AM
Yes ... Use the HMODULE/HINSTANCE members from a library, exe and so on ... You may use GetModuleHandle(...) to access resources of a file ...