System time

  • Thread starter Thread starter Venue
  • Start date Start date
V

Venue

I am using the following to set the system time on pocket pc 2003. How do I
tell it to set the US ET zone and not default GMT. Is there any pInvoke.

[DllImport("coredll.dll")]
public extern static uint SetSystemTime(ref SYSTEMTIME tm)
 
SetSystemTime() *always* sets the time relative to GMT. If you want to set
the local time, you need SetLocalTime().

Paul T.
 
Back
Top