BOOL GetTimeInf(TCHAR *ptszTimeFormatCtrl, TCHAR *ptszTimeBuf, DWORD dwBufLen)
{
// 0. variable definition
SYSTEMTIME Reg_systime; // System time from regist
_locale_t locale = NULL; // local to determine time show style
struct tm Reg_showtime;