c++windowstimesystem

Windows C++: absolute memory address to read system time from?


I'm trying to find system time without needing any function/system calls. I seem to remember Windows having an absolute address that a giant struct sits in, which is constantly updated with various system info including time...but google isn't giving me anything...did I imagine this or is it a thing?


Solution

  • KUSER_SHARED_DATA @ 0x7FFE0000 (its evolution) but the documented functions just read from there anyway so all you gain is the possibility of your application breaking in the next version of Windows.

    Further reading