Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How convert ADSI LargeInteger to Datatime type?
Message
 
To
31/05/2002 08:22:36
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00663356
Message ID:
00663366
Views:
12
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform