Using GetActiveObject of OLEAUT32.DLL

Georg Ragaller <[email protected]>
Newsgroups gmane.comp.windows.devel.jawin
Message-ID <LISTSERV%[email protected]>
Since I found only one question about getting an active COM instance
(http://discuss.develop.com/archives/wa.exe?A2=ind0112A&L=JAWIN&P=R118&I=-3)
and no answer/solution to that posting, I implemented it myself
on top of jawin-2.0-alpha1.

I did it by creating a new Class OleAut32 in the org.jawin.win32 package,
with one public method

    public static IUnknown GetActiveObject(String progID)
        throws COMException


The method implementation needs access to Ole32.CLSIDFromProgID, which I
changed from private to package access.

My questions now are:

Is there already a widely accepted solution to this problem, without
changing the JAWIN source?
If not, are the JAWIN maintainers willing to incorporate my code?

Thanks in advance.
Georg
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.