发表于:2003-04-21 17:04:00
1楼
#pragma code("kernel32.dll")
void GetLocalTime(LPSYSTEMTIME lpSystemTime);
#pragma code()
SYSTEMTIME sysTime;
char szTime[6] = " ";
GetLocalTime(&sysTime);
SetTagByte("Time_Hour",sysTime.wHour);
SetTagByte("Time_Minute",sysTime.wMinute);
SetTagByte("Time_Second",sysTime.wSecond);
/*结构原型
typedef struct _SYSTEMTIME {
WORD wYear;
WORD wMonth;
WORD wDayOfWeek;
WORD wDay;
WORD wHour;
WORD wMinute;
WORD wSecond;
WORD wMilliseconds;
} SYSTEMTIME, *PSYSTEMTIME;
*/