SetTimeZoneInformation and file time stamps
- From: portnawake@xxxxxxxxx
- Date: 27 Mar 2007 14:46:09 -0700
Hi there,
I have a really surprising issue on my CE4.2 device.
Here's what's happening:
On startup of the machine, there is a check to compare the modified
time stamp of a file myOwn.dll in \Windows\ and in \CompactFlash
\Windows\
If they are different, we copy the file from the CompactFlash to the
object store \Windows
Then we carry on with the init sequence of the system, including
setting the time zone to the user preferences.
Then, once the setup is finished, because we updated this dll, we
prompt the user for a warm reset.
Then on this second startup, the timestamps of the two files are
checked again, and they ARE DIFFERENT!!!
(actually, they are not completely different, they are just TimeZone-
different.) So we copy again, etc...
What I see, is that the timestamp of the file located on the object
store doesn't get changed after the call to SetTimeZoneInformation,
but the one on the CompactFlash DOES get changed.
That's this lack of consistency that puzzles me, and generates hassles
in my system startup.
The two files have been copied in the same timezone, they have the
same timestamp then at this time.
After the TZI has been set on the system, they don't have the same
timestamp anymore. Weird, hey?
If anyone has an idea about where to start poking to resolve that, I'd
be more than happy, I'm a bit lost in the Twilight Zone.
Is there a reg setting somewhere that rules how the storage devices
deal with time???
Best regards
Alex.
.
- Follow-Ups:
- Re: SetTimeZoneInformation and file time stamps
- From: Paul G. Tobey [eMVP]
- Re: SetTimeZoneInformation and file time stamps
- Prev by Date: DeviceIOControl Error on wince
- Next by Date: Re: DeviceIOControl Error on wince
- Previous by thread: DeviceIOControl Error on wince
- Next by thread: Re: SetTimeZoneInformation and file time stamps
- Index(es):
Relevant Pages
|