I am trying to convert a hex date/time value to a date format. I already know how to convert it to a readable format but I can't get it to the filetime format.
I reverse the values (little endian) and put them into two separate char values:Code:The hex value I got is: 0x60 0x16 0x59 0x8F 0x7C 0xF0 0xC6 0x01
Now I need the put both of the sz values into the high and low DWORD locations of the FileTime struct:Code:szHigh[] = {0x01,0xC6,0xF0,0x7C}; szLow[] = {0x8F,0x59,0x16,0x60};
The above code always returns 0 for both values.Code:LastWritten.dwHighDateTime = atol(szHigh); LastWritten.dwLowDateTime = atol(szLow);
What am I doing wrong and is there a better way to convert a date stamp to the FileTime format?



LinkBack URL
About LinkBacks


