I'm expanding an application which need to accommodate Windows from XP and up. The program is in C and need to get the time of the last boot of the computer. For Vista and up there is a function getTickCount64() which I linked below.
https://msdn.microsoft.com/en-us/library/windows/desktop/ms724411(v=vs.85).aspx
The problem is that for XP this function is unavailable and the 32 bits version of this function getTickCount() only counts ~49 days then loops around because of the number of milliseconds that can fit in a 32 bit unsigned integer.
I can't use command line tools like systeminfo, WMIC, Powershell or net statistics workstation.
Is there a timestamp anywhere on the system where this information is kept appart from being deducted from a difference of the system time and getTickCount function ? And how could I retrieve it from my C program ?