#include <windows.h>
int main ()
{
SYSTEMTIME st;
memset(&st, 0, sizeof(st));
st.wYear = 2012;
st.wMonth = 3;
st.wDay = 10;
st.wHour = 10;
st.wMinute = 10;
st.wSecond = 10;
SetLocalTime(&st); // 设置Windows本地时间 2012-3-10 10:10:10
return 0;
}