Change Pocket PC time & date c#

69 Views Asked by At

I am writing an application with C# for Windows CE in Pocket PC and i need to change Pocket PC time & date manually. Is there any solution to change the time and date manually with c# code? Any ideas please?

1

There are 1 best solutions below

0
Józef Podlecki On BEST ANSWER

Can you try with P/Invoke SetSystemTime from kernel32.dll?

Windows CE 1.0 and above seems to support that

This function sets the current system time and date. The system time is expressed in UTC.

Requirements OS Versions: Windows CE 1.0 and later. Header: Winbase.h. Link Library: Coredll.lib.