//Show current time TCHAR szTime[100]; GetTimeFormat(LOCALE_USER_DEFAULT,0,NULL,NULL, szTime,sizeof(szTime)/sizeof(szTime[0]));