Hallo Peter,
Yes, I´ve already tried this, but it also gives a value that is hundreds of
years behind.
I´ve just tried to use coredll.dll´s FileTimeToSystemTime, because the WinCE
SYSTEMTIME structure looks more usable, but I get a NotSupportedException...
Hope anyone knows a way to get it done...
--
Danyel Meyer
-------------------------------------------
dialog-it GmbH
Röllinghäuser Strasse 55a
31061 Alfeld/Leine
Tel +49 (0) 5181 900 814
Fax +49 (0) 5181 900 815
E-Mail danyel.meyer <at> dialog-it.de
"Peter Foot [MVP]" <(E-Mail Removed)> schrieb im Newsbeitrag
news:(E-Mail Removed)...
> Have you tried FromFileTimeUTC() which will convert a time expressed as
> universal time (FromFileTime expects a FileTime expressed in the devices
> currently set local time)
>
> Peter
>
> --
> Peter Foot
> Windows Embedded MVP
> OpenNETCF.org Senior Advisor
> www.inthehand.com | www.opennetcf.org
>
> "Danyel Meyer - dialog-it GmbH dialog-it.de>" <info<at> wrote in message
> news:%(E-Mail Removed)...
> > Hallo!
> >
> > Could anyone tell me how to convert a time given in a FILETIME structure
> > during P/Invoke to a DateTime value in VB.NET?
> > I´ve tried functions like DateTime.FromFileTime(), but what I get does
not
> > match the time that should be it...
> >
> > Many thanks in advance,
> >
> > --
> > Danyel Meyer
> > -------------------------------------------
> > dialog-it GmbH
> > Röllinghäuser Strasse 55a
> > 31061 Alfeld/Leine
> >
> > Tel +49 (0) 5181 900 814
> > Fax +49 (0) 5181 900 815
> > E-Mail danyel.meyer <at> dialog-it.de
> >
> >
>
>