<div class="gmail_quote"><div>Hi,</div>
<div> </div>
<div>I am trying to use the GetRunningObjectTable function to retrieve a list of all running objects (to later use them in COM automation).</div>
<div> </div>
<div>I do the following :</div>
<div> </div>
<div>&gt;&gt;&gt; import System<br>&gt;&gt;&gt; System.Runtime.InteropServices.ComTypes.IBindCtx.GetRunningObjectTable(0)<br>Traceback (most recent call last):<br>  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;<br>

TypeError: expected IBindCtx, got int</div>
<div> </div>
<div>I am puzzled by the error as, if i understood properly the way ipy works, I would expect to give an Int as input parameter and get back a tuple with the restult of the function and the out parameter.</div>
<div> </div>
<div>If i replace the 0 with a refernce to a IBindCtx type:</div>
<div>&gt;&gt;&gt; import clr<br>&gt;&gt;&gt; rot=clr.Reference[System.Runtime.InteropServices.ComTypes.IBindCtx]()<br>&gt;&gt;&gt; System.Runtime.InteropServices.ComTypes.IBindCtx.GetRunningObjectTable(rot)<br>Traceback (most recent call last):<br>

  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;<br>TypeError: expected IBindCtx, got StrongBox[IBindCtx]</div>
<div> </div>
<div>My knowledge of .net is quite reduced ... any help would be greatly appreciated</div>
<div> </div>
<div>sebastien</div>
<div> </div>
</div>ps: sorry if this message appears as reposted but I do not see it in the mailing list after more than 24 hours ...<br>