PaulSinnema
October 27th, 2005, 04:01 AM
Hi,
I've programmed a class to get the Typelib information for a registered Class. Now I can find all the information fine but 1 issue still remains. I don't know how Windows determines the Version in the 'Typelib' section.
It goes as follows:
All searches are in the HKEY_CLASSES_ROOT section.
- I first search for the ClassKey let's say 'ResetFunction.ResetFunctionClass'.
- I find the 'Clsid' key which point to another entry in the registry.
- With this 'guid' key I look in the CLSID Section and find the 'typelib' key which contains another 'guid' key for the Typelib and the 'Version' which contains the Version (let's say '1.0').
- With this 'guid' key I look in the 'typelib' Section and find the '1.0' Subkey with the earlier found Version Information.
- Now comes my problem. In this '1.0' subkey there's another subkey with name '0'. This is a kind of Subversion I think. How do I determine which Subkey to take. In some Entries in the Registry there are more than 1 Subkey (i.e. '0', '6', '7', '9'). Which one do I take?
Here's an example in my Regitry. I know how to determine all but the last '0'.
HKEY_CLASSES_ROOT\TypeLib\{A8F19B96-9360-4546-A55B-AFC16A2C93A6}\1.0\0
Paul.
I've programmed a class to get the Typelib information for a registered Class. Now I can find all the information fine but 1 issue still remains. I don't know how Windows determines the Version in the 'Typelib' section.
It goes as follows:
All searches are in the HKEY_CLASSES_ROOT section.
- I first search for the ClassKey let's say 'ResetFunction.ResetFunctionClass'.
- I find the 'Clsid' key which point to another entry in the registry.
- With this 'guid' key I look in the CLSID Section and find the 'typelib' key which contains another 'guid' key for the Typelib and the 'Version' which contains the Version (let's say '1.0').
- With this 'guid' key I look in the 'typelib' Section and find the '1.0' Subkey with the earlier found Version Information.
- Now comes my problem. In this '1.0' subkey there's another subkey with name '0'. This is a kind of Subversion I think. How do I determine which Subkey to take. In some Entries in the Registry there are more than 1 Subkey (i.e. '0', '6', '7', '9'). Which one do I take?
Here's an example in my Regitry. I know how to determine all but the last '0'.
HKEY_CLASSES_ROOT\TypeLib\{A8F19B96-9360-4546-A55B-AFC16A2C93A6}\1.0\0
Paul.