<HTML>
<font style="font-family: tahoma; font-size: 10pt;"><div style="font-family:
tahoma; font-size: 10pt;">Hi,</div><div> </div><div>i just downloaded
and installed IronPython Studio, a very impressive work indeed. Is this
possible to import modules like normal CPython 2.5 usage (modules that have
nothing to do with .net stuff, like win32api or PyQt, for instance) and
succesfully build the project ??</div><div> </div><div>I tried the
following code but it says cannot import modue "win32pdh".<font><font
style="font-family: tahoma; font-size: 10pt;"><span style="text-decoration:
underline;"><br></span></font></font></div><div> </div><div>Thanks for
any help. </div><div> </div><div style="font-family: tahoma;
font-size: 10pt;">------------------------------</div><div><span
style="text-decoration: underline;">import win32pdh, string, win32api, os<br>
<br>def procIDSs():<br> junk, instances =
win32pdh.EnumObjectItems(None, None, "process",
win32pdh.PERF_DETAIL_WIZARD)<br> proc_ids = []<br>
proc_dict = {}<br> <br>
for instance in instances:<br>
if instance in proc_dict:<br>
proc_dict[instance] = proc_dict[instance] + 1<br>
else:<br>
proc_dict[instance] = 0<br> for instance, max_instance in
proc_dict.items():<br> for inum in
xrange(max_instance + 1):<br>
hq =
win32pdh.OpenQuery()<br>
path =
win32pdh.MakeCounterPath((None, "process", instance, None, inum, "ID
Process"))<br>
counter_handle = win32pdh.AddCounter(hq, path)<br>
win32pdh.CollectQueryData(hq)<br>
type, val
= win32pdh.GetFormattedCounterValue(counter_handle,
win32pdh.PDH_FMT_LONG)<br>
proc_ids.append((instance, str(val)))<br> return
proc_ids<br><br>for process in procIDSs():<br> print
process</span><a href="mailto:users@lists.ironpython.com"></a></div></font>
</HTML>