Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个代码,它使用 SystemTime 作为 FileTime
uint64 currentUtcFileTime;GetSystemTimeAsFileTime((FILETIME*)¤tUtcFileTime);
现在我想将这个 uint64 转换回 FILETIME。
我找了很久终于得到了这个解决方案——
文件时间 ftime;__int64 i64;
*(__int64 *)&ftime = i64;
它对我来说效果很好:)