SetSystemTime(SYSTEMTIME &st)
解决方案 »
- 关于多线程同步的问题
- VC 界面如何分屏
- 关于FTP的APPE命令
- 客户端怎么实现通过一个服务器IP地址和端口代理上网?程序怎么实现?
- &* 最惨的事情: 下木马被人发现是病毒,非常郁闷~ spy_pass.zip(five32.exe) 该怎么修改才能不是病毒呢? *&
- 请问怎么实现有标签的窗口?
- 请教SQL语句
- csdn在亚运村的什么地方?具体的地址和联系方式谁能告诉?
- 调用IShockwaveFlash 播放flash,put_Movie 后play()不能播放
- 请问重叠IO问题和相关编程
- 关于UNION联合体的调用问题
- to vcmfc:我想要你的Flat库,可以给我一份吗,谢谢:Email:[email protected]
WORD wYear;
WORD wMonth;
WORD wDayOfWeek;
WORD wDay;
WORD wHour;
WORD wMinute;
WORD wSecond;
WORD wMilliseconds;
} SYSTEMTIME, *PSYSTEMTIME; BOOL SetSystemTime(
CONST SYSTEMTIME *lpSystemTime // system time
);
The following example sets the system time using the SetSystemTime function.// SetNewTime - sets system time
// Return value - TRUE if successful, FALSE otherwise
// hour - new hour (0-23)
// minutes - new minutes (0-59)BOOL SetNewTime(WORD hour, WORD minutes)
{
SYSTEMTIME st;
char *pc; GetSystemTime(&st); // gets current time
st.wHour = hour; // adjusts hours
st.wMinute = minutes; // and minutes
if (!SetSystemTime(&st)) // sets system time
return FALSE;
return TRUE;
}