title: Introspecting a DLL with python
body: <p>I'm currently trying to do some introspection on a DLL with python. I want to create automatically a graphical test interface based on a DLL.</p>
  
  <p>I can load my DLL in python quite easily and I call some functions. The main problem is if I call "dir" on the object without calling any method, I've got in result</p>
  
  <pre><code>&gt;&gt;&gt; dir(myLib)
  ['_FuncPtr', '__class__', '__delattr__', '__dict__', '__doc__',
  '__format__', '__getattr__', '__getattribute__', '__getitem__', '__hash__', '__i
  nit__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__s
  etattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_func_fl
  ags_', '_func_restype_', '_handle', '_name']
  </code></pre>
  
  <p>and when I call  manually a function (like "Read_Version") I have as result of the dir function </p>
  
  <pre><code>&gt;&gt;&gt; dir(myLib)
  ['Read_Version', '_FuncPtr', '__class__', '__delattr__', '__dict__', '__doc__',
  '__format__', '__getattr__', '__getattribute__', '__getitem__', '__hash__', '__i
  nit__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__s
  etattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_func_fl
  ags_', '_func_restype_', '_handle', '_name']
  </code></pre>
  
  <p>It seems that introspection work only on function I have already called and this is not really "usefull" ;).</p>
  
  <p>Have you got an other idea to fetch functions which are in a DLL ? (in python of course)</p>
  
  <p>I'm using python 2.6 under Windows.</p>