void sysTime( int& year, int& month, int& dayOfWeek, int& day, int& hour, int& min, int& sec )
{
SYSTEMTIME st;
GetLocalTime( &st );
year = st.wYear;
month = st.wMonth;
dayOfWeek = st.wDayOfWeek;
day = st.wDay;
hour = st.wHour;
min = st.wMinute;
sec = st.wSecond;
}