getting GUID from dispatches
Aldo Kurnia <[email protected]> Mon, 5 Feb 2007 17:57:39 -0500
| Newsgroups | gmane.comp.windows.devel.jawin |
|---|---|
| Message-ID | <LISTSERV%[email protected]> |
Hi,
I have been trying to get the GUIDs from a dll file so I don't have
hard-code it in jawin's auto-generated java files (which will break when the
GUID changes, and it will change).
I'm able to do this for the co-classes by reading the registry value in
HKEY_CLASSES_ROOT/<function_name>, but dispatches are stored in the
HKEY_CLASSES_ROOT/Interfaces/<{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx}>
subkeys, and in my case, there are 3-4 keys with the same value (probably
from previous versions of the dll), and it's impossible to determine which
one the correct key.
Is there a way to get the GUIDs for the dispatches without going through the
registry and without using ProgID?
I also haven't been able to determine how jawin was able to get the GUIDs in
the first place.
Any suggestion would be greatly appreciated.
Thank you.