[Tutor] list dll functions?
alan.gauld at btinternet.com
Wed Sep 15 19:03:52 CEST 2010
Find the Pythonwin IDE executable and run it - its a better IDE than IDLE in my
opinion, especially if you are on Windows.
Once it is started you can go to the Tools->COM Browser menu item and
it starts an explorer type Window. The top level "folders" are:
Registered Type Libraries
You can then drill down and explore as you wish.
For example under Registered Type Libraries there is Accessibility.
Within that there is TypeLibrary-> IAccessible-Dispatch
Within that there are functions such as AddRef, Invoke, GetTypeInfo etc.
Inside those you can see the parameters etc.
Author of the Learn To Program website
----- Original Message ----
> From: Alex Hall <mehgcap at gmail.com>
> To: Alan Gauld <alan.gauld at btinternet.com>
> Sent: Wednesday, 15 September, 2010 15:57:43
> Subject: Re: [Tutor] list dll functions?
> On 9/15/10, Alan Gauld <alan.gauld at btinternet.com> wrote:
> > "Alex Hall" <mehgcap at gmail.com> wrote
> >> Out of curiosity: I know I can call dll functions from python using
> >> the win32 lib, but is there any way to simply "examine" a loaded dll
> >> to see all of the functions and attributes it exposes for use?
> > There are various tools around to do that and hopefully some
> > documentation!
> > But often nowadays DLLs expose a COM object model and
> > you have a COM browser built into Pythonwin. That will give
> > you a windows explorer type view of the objects and their
> > operations.
> How would you go about doing that? I have the pywin extension
> installed for my python installation.
> > If the DLL is purely perocedural then that won't help.
> > HTH,
> > --
> > Alan Gauld
> > Author of the Learn to Program web site
> > http://www.alan-g.me.uk/
> > _______________________________________________
> > Tutor maillist - Tutor at python.org
> > To unsubscribe or change subscription options:
> > http://mail.python.org/mailman/listinfo/tutor
> Have a great day,
> Alex (msg sent from GMail website)
> mehgcap at gmail.com; http://www.facebook.com/mehgcap
More information about the Tutor