首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VB >

怎么用VB编程修改系统时间

2012-01-26 
如何用VB编程修改系统时间我想定期修改一下系统时间,使时间一直保持在2007年1月1号,到2007年2月1号之间。请

如何用VB编程修改系统时间
我想定期修改一下系统时间,使时间一直保持在2007年1月1号,到2007年2月1号之间。请问用VB程序怎么实现?

[解决办法]
用 api
SetSystemTime
[解决办法]
Private Type SYSTEMTIME
wYear As Integer
wMonth As Integer
wDayOfWeek As Integer
wDay As Integer
wHour As Integer
wMinute As Integer
wSecond As Integer
wMilliseconds As Integer
End Type

Private Declare Function SetLocalTime Lib "kernel32 " (lpSystemTime As SYSTEMTIME) As Long

热点排行