更改 Pocket PC 时间和日期 c#
Change Pocket PC time & date c#
我正在用 C# 为 Pocket PC 中的 Windows CE 编写应用程序,我需要手动更改 Pocket PC 的时间和日期。是否有任何解决方案可以使用 c# 代码手动更改时间和日期?
有什么想法吗?
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.
我正在用 C# 为 Pocket PC 中的 Windows CE 编写应用程序,我需要手动更改 Pocket PC 的时间和日期。是否有任何解决方案可以使用 c# 代码手动更改时间和日期? 有什么想法吗?
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.