Article View: alt.comp.lang.visualbasic.ver3
Article #13Re: >AX DLL's<
From: J French
Date: Mon, 05 Nov 2001 09:05
Date: Mon, 05 Nov 2001 09:05
29 lines
2809 bytes
2809 bytes
On Sat, 3 Nov 2001 17:11:04 +0100, "Ric." <me@nospam.com> wrote:
>I need to write a program that scans my drive for .DLLs an determines if
>that .DLL is in fact an OCX. I also need to find out if that OCX-DLL is sel
>registering or not and what the CLSID is that is embeded is the DLL file
>(so, not reading from the registry). Does anyone know how to do this? I have
>been looking for APIs, but none found (source: API-Guide and internet).
>
Strange I posted this ages ago - the giveaways for AX 'DLLs' are:-
DllCanUnloadNow
DllGetClassObject
DllRegisterServer
DllUnregisterServer
Just because a DLL is in your registry does not mean that it is still
on disk - and just because it is on disk does not mean that it is
registered.
A poke around in SETUP1 - the VB bit of the setup wizard should
provide some interesting stuff :-
Declare Function GetClsidFromActXFile _
Lib "VB5STKIT.DLL" _
(ByVal pszFilename As String, _
ByVal pszProgID As String, _
ByVal pszClsid As String) As Long
This looks a bit of a contender for the task.
Technical Details
Message-ID:
<3be64ff4.2538660@news.u-net.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!peer.news.opaltelecom.net!newsr2.u-net.net!53ab2750!not-for-mailReferences:
<1004803864.729108@news.knoware.nl>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10c949,ad40f47700dae71 X-Google-Attributes: gid10c949,public X-Google-Thread: 1143a7,ad40f47700dae71 X-Google-Attributes: gid1143a7,public X-Google-Thread: 1023e1,ad40f47700dae71 X-Google-Attributes: gid1023e1,public X-Google-Thread: f8386,ad40f47700dae71 X-Google-Attributes: gidf8386,public X-Google-Thread: f645d,ad40f47700dae71 X-Google-Attributes: gidf645d,public X-Google-Thread: f5f6f,ad40f47700dae71 X-Google-Attributes: gidf5f6f,public X-Google-Thread: 110e3b,ad40f47700dae71 X-Google-Attributes: gid110e3b,public X-Google-Thread: 110f6c,ad40f47700dae71 X-Google-Attributes: gid110f6c,public X-Google-ArrivalTime: 2001-11-05 01:04:19 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!peer.news.opaltelecom.net!newsr2.u-net.net!53ab2750!not-for-mail From: jerry@iss.u-net.com (J French) Newsgroups: alt.comp.lang.visualbasic.ver3,basicworld.public.basicpro,basicworld.public.vb.winapi,comp.lang.basic.misc,comp.lang.basic.visual,comp.lang.basic.visual.3rdparty,comp.lang.basic.visual.database,comp.lang.basic.visual.misc,comp.lang.visual.basic,e Subject: Re: >AX DLL's< Reply-To: jerry@iss.u-net.com Message-ID: <3be64ff4.2538660@news.u-net.com> References: <1004803864.729108@news.knoware.nl> X-Newsreader: Forte Free Agent 1.1/32.230 Lines: 29 Date: Mon, 05 Nov 2001 09:05:18 GMT NNTP-Posting-Host: 195.102.193.139 X-Trace: newsr2.u-net.net 1004951010 195.102.193.139 (Mon, 05 Nov 2001 09:03:30 GMT) NNTP-Posting-Date: Mon, 05 Nov 2001 09:03:30 GMT Organization: (Posted via) VIA Net.Works UK Ltd. X-Received-Date: Mon, 05 Nov 2001 09:03:30 GMT (newsr2.u-net.net)