On Windows Mobile (but I think itβs the same on Windows) in a native C ++ application, how would I decide to configure the SYSTEMTIME structure correctly? Assuming I have
int year, month, dayOfMonth, hour, minute, second;
I obviously have to set the elements wHour, wYear, etc. SYSTEMTIME structures, but what happens to wDayOfWeek in this case, I would prefer it to be configured correctly. I looked, but did not find any functions on MSDN that would allow me to populate the SYSTEMTIME structure in which the wDayOfWeek member would be calculated for me. Am I missing something or how can I do this?
source
share