<div>Sorry for the long content!!</div>
<div>I am trying to recover,&nbsp;in date format,&nbsp;the &quot;AccountExpires&quot; attribute from an Active Directory database.<br>When an account never expires, &quot;AccountExpires&quot; attribute can have two possible values: zero or 9223372036854775807, 
<br>the last large value is System.Int64 but I need to convert it to IADsLargeInteger which is an &quot;COM Interop Type&quot; object of Active Directory that then, lets me&nbsp;convert to&nbsp;date format.<br>I have the next C# example I took from a publication that would like to write in ipy: 
</div>
<p>using ActivedsNET;<br>public static IADsLargeInteger GetLargeInteger(long value)<br>{<br>&nbsp;&nbsp;&nbsp; IADsLargeInteger largeInteger = new LargeInteger();<br>&nbsp;&nbsp;&nbsp; largeInteger.HighPart = (int) (value &lt;&lt; 32);<br>&nbsp;&nbsp;&nbsp; largeInteger.LowPart
 = (int) (value &amp; 0xFFFFFFFF);<br>&nbsp;&nbsp;&nbsp; return largeInteger;<br>}</p>
<p>Observe that I need to have ActivedsNET which is a runtime-callable wrapper (RCW). After some investigation to&nbsp;get this&nbsp;as an&nbsp;assembly, I used next SDK command: </p>
<p>tlbimp.exe activeds.tlb /out:activedsNET.dll /namespace:ActivedsNET</p>
<p>getting next warning messages during conversion:<br>TlbImp : warning TI0000 : The type library importer could not convert the signature for the member &#39;ADS_OCTET_STRING.lpValue&#39;.<br>TlbImp : warning TI0000 : The type library importer could not convert the signature for the member &#39;__MIDL___MIDL_itf_ads_0000_0002.lpValue&#39;. 
<br>.<br>.<br>.<br>TlbImp : warning TI0000 : At least one of the arguments for &#39;IDirectorySchemaMgmt.EnumAttributes&#39; cannot be marshaled by the runtime marshaler.&nbsp; Such arguments will therefore be passed as a pointer and may require unsafe code to manipulate. 
<br>TlbImp : warning TI0000 : At least one of the arguments for &#39;IDirectorySchemaMgmt.EnumClasses&#39; cannot be marshaled by the runtime marshaler.&nbsp; Such arguments will therefore be passed as a pointer and may require unsafe code to manipulate. 
<br>Type library imported to c:\os\ipy\src\activedsNET.dll</p>
<p>After getting the .dll expected, I attempted to import into ipy 2.0a4 and ipy 2.0a5 having the next behavior:<br>&gt;&gt;&gt; import clr<br>&gt;&gt;&gt; clr.AddReferenceToFile(&quot;activedsNET.dll&quot;)&nbsp; #Seems not be problem here 
<br>&gt;&gt;&gt; dir(activedsNET)<br>Traceback (most recent call last):<br>&nbsp; File , line 0, in ##245<br>NameError: name &#39;activedsNET&#39; is not defined</p>
<p>&gt;&gt;&gt; dir()<br>[&#39;__builtins__&#39;, &#39;__doc__&#39;, &#39;__name__&#39;, &#39;clr&#39;, &#39;sys&#39;]&nbsp; #ActivedsNET is not showed<br>&gt;&gt;&gt;</p>
<div>What do you think is bad here?<br>Is this possible to help me with the info I gave? or do you need additional one.<br>Really, thanks for your attention.</div><span class="sg">
<div>Vizcayno.</div>
<div><br>&nbsp;</div></span>