可以通过 P/Invoke 来实现,代码如下:[StructLayout(Layout.Sequential)]
struct SYSTEMTIME {
short year;
short month;
short dayOfWeek;
short day;
short hour;
short minute;
short second;
short milliseconds;
}And then call it using this:[DllImport("kernel32.dll")]
static extern bool SetSystemTime(SYSTEMTIME time);
struct SYSTEMTIME {
short year;
short month;
short dayOfWeek;
short day;
short hour;
short minute;
short second;
short milliseconds;
}And then call it using this:[DllImport("kernel32.dll")]
static extern bool SetSystemTime(SYSTEMTIME time);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货