Can someone tell me how one can set system clock
programmatically on Pocket PC? Is there anyway to sync
clock between desktop and Pocket PC through ActiveSync?

I have a client/server application that the client runs on
PocketPC and the server runs on Windows 2000 Server. The
system clock on PocketPC appears to draft. I need to sync
the clock on the PocketPC with the clock on the server.

Any help would be appreciated. The program is written in
C# under VS.NET

Re: Set system clock on Pocket PC by Chris

Chris
Mon Feb 09 11:27:27 CST 2004

The OpenNETCF libraries have wrappers for setting the system and local time.

www.opennetcf.org/winapi.asp

ActiveSync I believe syncs the PC and PPC clock automatically on connection
by default.

--
Chris Tacke, eMVP
Co-Founder and Advisory Board Member
www.OpenNETCF.org
---
Windows CE Product Manager
Applied Data Systems
www.applieddata.net


"Delphine Han" <ddha@chevrontexaco.com> wrote in message
news:cd5901c3ef30$c5e984f0$a301280a@phx.gbl...
> Can someone tell me how one can set system clock
> programmatically on Pocket PC? Is there anyway to sync
> clock between desktop and Pocket PC through ActiveSync?
>
> I have a client/server application that the client runs on
> PocketPC and the server runs on Windows 2000 Server. The
> system clock on PocketPC appears to draft. I need to sync
> the clock on the PocketPC with the clock on the server.
>
> Any help would be appreciated. The program is written in
> C# under VS.NET



Re: Set system clock on Pocket PC by Paul

Paul
Mon Feb 09 11:29:30 CST 2004

I'm not sure about the clock synchronization question; sorry. You can
P/Invoke SetSystemTime() or SetLocalTime() to set the clock to a given time,
though. OpenNetCF.org's library has the necessary declaration, etc. to do
this in the DateTimeEx class.

Paul T.

"Delphine Han" <ddha@chevrontexaco.com> wrote in message
news:cd5901c3ef30$c5e984f0$a301280a@phx.gbl...
> Can someone tell me how one can set system clock
> programmatically on Pocket PC? Is there anyway to sync
> clock between desktop and Pocket PC through ActiveSync?
>
> I have a client/server application that the client runs on
> PocketPC and the server runs on Windows 2000 Server. The
> system clock on PocketPC appears to draft. I need to sync
> the clock on the PocketPC with the clock on the server.
>
> Any help would be appreciated. The program is written in
> C# under VS.NET



Re: Set system clock on Pocket PC by Geoff

Geoff
Mon Feb 09 12:36:25 CST 2004

There is a Time sample in the P/Invoke Library.

http://msdn.microsoft.com/library/en-us/dnnetcomp/html/PInvokeLib.asp

--
Geoff Schwab
Program Manager
Excell Data Corporation
http://msdn.com/mobility
http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/FAQ/default.aspx

This posting is provided "AS IS" with no warranties, and confers no rights.
"Delphine Han" <ddha@chevrontexaco.com> wrote in message
news:cd5901c3ef30$c5e984f0$a301280a@phx.gbl...
> Can someone tell me how one can set system clock
> programmatically on Pocket PC? Is there anyway to sync
> clock between desktop and Pocket PC through ActiveSync?
>
> I have a client/server application that the client runs on
> PocketPC and the server runs on Windows 2000 Server. The
> system clock on PocketPC appears to draft. I need to sync
> the clock on the PocketPC with the clock on the server.
>
> Any help would be appreciated. The program is written in
> C# under VS.NET