SystemTimeToFileTime fails every time
Posted on 1999-01-04
I'm writing a Windows CE app and the following code, which is really simple, fails every time. All I'm trying to do is convert a SYSTEMTIME structure to a FILETIME.
st.wYear = (WORD)Year;
st.wMonth = (WORD)Month;
st.wDay = (WORD)Day;
st.wHour = (WORD)0;
st.wMinute = (WORD)0;
st.wSecond = (WORD)0;
st.wMilliseconds = (WORD)0;
// convert to something readable
The error code is 1413 (Invalid index). What the @@#@# does Invalid index have to do with anything ??