reinaldo.gomes has asked for the wisdom of the Perl Monks concerning the following question:
I have a simple task: to make sure that a given dll is indeed registered in a Windows system.
The only thing I could think of is: to extract a CLSID from the DLL's TypeLib and check it against Windows' registry. This way I can be 100% sure that this exact file is registered, and not just any DLL with the same name.
The question is: how can I reliably extract TypeLib's CLSID from an unregistered DLL? I've been able to do it through hexdump/regex, but in the end I'll be just guessing where it is, and it might fail eventually.
Is there a way to make the DLL spit it out for me? Just the way it does to the registry when the registering function is called?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Extract CLSID from unregistered DLL
by Corion (Patriarch) on Dec 24, 2016 at 07:37 UTC | |
by reinaldo.gomes (Beadle) on Dec 24, 2016 at 11:37 UTC | |
by Corion (Patriarch) on Dec 24, 2016 at 11:54 UTC | |
|
Re: Extract CLSID from unregistered DLL
by reinaldo.gomes (Beadle) on Dec 25, 2016 at 13:50 UTC |