using IPHLPAPI.dll from Python
Rudy Schockaert
rudy.schockaert at pandora.be
Wed Jan 30 04:56:19 EST 2002
Thanks David, I'm sure this will help me a lot.
/Rudy
"David Bolen" <db3l at fitlinxx.com> wrote in message
news:u665kfq2d.fsf at ctwd0143.fitlinxx.com...
> "Rudy Schockaert" <rudy.schockaert at pandora.be> writes:
>
> > Is there a way to call functions provided by such a dll? If so, where
could
> > I find the documentation that would get me on the right track?
>
> You could try the calldll module, which pretty much lets you call
> arbitrary DLL functions directly. Depending on how complicated the
> parameters are it can get hairy, but it would probably be fine. You
> can get it at http://www.nightmare.com/software.html - I believe the
> version has a binary for Python 2.1, but it has source that you can
> rebuild for any version. I think Alex Martelli posted a URL for a 2.2
> version he compiled (try a google search) here in the not too distant
> past.
>
> The other alternative would be to write an extension module wrapping
> the functions you need and then use that from your Python code.
> Extension modules are covered in the standard Python documentation,
> and some sample modules are in the source tree.
>
> --
> -- David
> --
> /-----------------------------------------------------------------------\
> \ David Bolen \ E-mail: db3l at fitlinxx.com /
> | FitLinxx, Inc. \ Phone: (203) 708-5192 |
> / 860 Canal Street, Stamford, CT 06902 \ Fax: (203) 316-5150 \
> \-----------------------------------------------------------------------/
More information about the Python-list
mailing list