Valhalla Legends Archive

Programming => General Programming => Visual Basic Programming => Topic started by: UserLoser. on January 23, 2004, 09:18 PM

Title: FileTime Troubles
Post by: UserLoser. on January 23, 2004, 09:18 PM
Some values I'm recieving from Battle.net need to be converted from a FILETIME to SYSTEMTIME... Except my only problem is a few of the values are too big to fit in a long, so how can I accomplish storing this value (2651206148) into the dwLowDateTime of the FILETIME struct (which is a long), and successfully convert it over to a SYSTEMTIME struct using FileTimeToSystemTime()?

I've already accomplished this, but the other values are smaller and fit into the FILETIME struct...
Title: Re:FileTime Troubles
Post by: Skywing on January 23, 2004, 09:23 PM
You could use everybody's favorite RtlCopyMemory hack?
Title: Re:FileTime Troubles
Post by: UserLoser. on January 23, 2004, 09:40 PM
Quote from: Skywing on January 23, 2004, 09:23 PM
You could use everybody's favorite RtlCopyMemory hack?

Couldn't get it to work, so I went to MS and found this page (http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/q189/3/23.asp&NoWebContent=1)