• Welcome to Valhalla Legends Archive.
 

GetSystemTime Question

Started by Yegg, July 20, 2005, 09:22 PM

Previous topic - Next topic

Yegg

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";



Arta

No, you should do:


FILETIME Time;
GetSystemTimeAsFileTime(&Time);

Message.add(&Time); // Or whatever

Yegg

Ok thanks Arta, it works great.