Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How convert ADSI LargeInteger to Datatime type?
Message
 
À
31/05/2002 08:22:36
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00663356
Message ID:
00663366
Vues:
13
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform