>Hi everybody,
>
> I´m trying access lastLogon property from ADSI user object,
>this return an object with 2 properties HighPart and LowPart.
> The question is how convert this numbers in date format?
>
>Thanks in advance,
>
Paulo,
Probably the easiest way is through the API. Convert the values to an eight byte string (low part to high part). This represents a FILETIME structure. Then call FileTimeToLocalFileTime(). Next, you'd call FileTimeToSystemTime(). This gives you a SYSTEMTIME structure.
I've got some code in the download section (Windows Time) that can handle all this for you, once you've made the conversion to the FILETIME structure.
If you'd like, I can post some code to demonstrate how to do this.
George
Ubi caritas et amor, deus ibi est