Mah Fa
Mah Fa

Reputation: 13

Change Pocket PC time & date c#

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?

Upvotes: 1

Views: 76

Answers (1)

Józef Podlecki
Józef Podlecki

Reputation: 11283

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.

Upvotes: 0

Related Questions