DLL info

  • Thread starter Ladvánszky Károly
  • Start date
L

Ladvánszky Károly

Could someone suggest me how to gather various information (version number
etc.) from a Windows DLL?
Thanks for any help,

Károly
 
R

Ray Smith

Ladvánszky Károly said:
Could someone suggest me how to gather various information (version number
etc.) from a Windows DLL?
Thanks for any help,

Károly

Find the DLL in Windows Explorer, right click on the dll, and select
properties. There should be a Version tab (I think ... haven't booted
my Windows PC in awhile).

For a utility to give you lots more info see:
http://www.dependencywalker.com/

Ray Smith
 
L

Ladvánszky Károly

Thanks but I'd like to do this with Python code.

Ray Smith said:
Find the DLL in Windows Explorer, right click on the dll, and select
properties. There should be a Version tab (I think ... haven't booted
my Windows PC in awhile).

For a utility to give you lots more info see:
http://www.dependencywalker.com/

Ray Smith
 
S

Syver Enstad

Ladvánszky Károly said:
Could someone suggest me how to gather various information (version number
etc.) from a Windows DLL?
Thanks for any help,

I looked at win32 all but it seems the functions aren't exposed
there. Grap ctypes by Thomas Heller and the MSDN Platform SDK
documenation.

Here's what you need:


from ctypes import *
windll.version.GetFileVersionInfoA

Or:
windll.version.GetFileVersionInfoW
 
T

Thomas Heller

Syver Enstad said:
I looked at win32 all but it seems the functions aren't exposed
there. Grap ctypes by Thomas Heller and the MSDN Platform SDK
documenation.

Right. There's even a sample (samples\Windows\VersionInfo.py) in the
source distribution.

Thomas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,164
Messages
2,570,898
Members
47,439
Latest member
shasuze

Latest Threads

Top