Valhalla Legends Archive

Programming => General Programming => C/C++ Programming => Topic started by: Yegg on July 20, 2005, 09:22 PM

Title: GetSystemTime Question
Post by: Yegg on July 20, 2005, 09:22 PM
Where BnetDocs has the following line:
(FILETIME)              System Time
Would it be correct to send the following data to Battle.net?
SYSTEMTIME st; GetSystemTime(&st);
std::cout << st.wDay << st.wDayOfWeek << st.wHour << st.wMilliseconds << st.wMinute << st.wMonth << st.wSecond << st.wYear << "\n";


Title: Re: GetSystemTime Question
Post by: Arta on July 20, 2005, 09:39 PM
No, you should do:


FILETIME Time;
GetSystemTimeAsFileTime(&Time);

Message.add(&Time); // Or whatever
Title: Re: GetSystemTime Question
Post by: Yegg on July 20, 2005, 09:49 PM
Ok thanks Arta, it works great.