首页 > 代码库 > c# 编程修改 wince 系统时间
c# 编程修改 wince 系统时间
[StructLayout(LayoutKind.Sequential)] public struct SYSTEMTIME { public ushort wYear; public ushort wMonth; public ushort wDayOfWeek; public ushort wDay; public ushort wHour; public ushort wMinute; public ushort wSecond; public ushort wMilliseconds; } [DllImport("coredll.dll")] private static extern bool SetLocalTime(ref SYSTEMTIME lpSystemTime); [DllImport("coredll.dll")] private static extern bool GetLocalTime(ref SYSTEMTIME lpSystemTime); SYSTEMTIME lpTime = new SYSTEMTIME (); lpTime.wYear = Convert.ToUInt16(N.Text); lpTime.wMonth = Convert.ToUInt16(Y.Text); lpTime.wDay = Convert.ToUInt16(R.Text); lpTime.wHour = Convert.ToUInt16(S.Text); lpTime.wMinute = Convert.ToUInt16(F.Text); lpTime.wSecond = Convert.ToUInt16(M.Text); SetLocalTime(ref lpTime);
c# 编程修改 wince 系统时间
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。