Setting Time and TimeZone programmatically

G

Guest

Hello,

I would like to set the time and timezone in the Pocket PC using the
code. Could any one help me on this. Also, I would like to check if the
DayLightSavings TimeZone Change patch (Daylight Savings Time - 2007) s
installed on the Pocket PC programmatically. Please let me if there is way
to do it and how to do it.


Thanks!!
-Jay
 
P

Paul G. Tobey [eMVP]

SetLocalTime() or SetSystemTime(). SetTimeZoneInformation().

There are probably half a dozen ways to check for the update. You could
just look for the registry entries that the update added. I don't have them
in front of me, but you can export the registry from an unpatched device,
then patch it, and export the registry again and do a compare (Remote
Registry Editor will do the export; you'll have to find a program for the
compare).

Paul T.
 
G

Guest

Thank you Paul. I'll try that.

-Jay

Paul G. Tobey said:
SetLocalTime() or SetSystemTime(). SetTimeZoneInformation().

There are probably half a dozen ways to check for the update. You could
just look for the registry entries that the update added. I don't have them
in front of me, but you can export the registry from an unpatched device,
then patch it, and export the registry again and do a compare (Remote
Registry Editor will do the export; you'll have to find a program for the
compare).

Paul T.
 
G

Guest

Paul,

I set the TimeZone using SetTimeZoneInformation(), but the .NetCF clock
is not updated. Please advise me on this.

Thanks!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top