title: Programmatically getting system boot up time in c++ (windows)
body: <p>So quite simply, the question is how to get the system boot up time in windows with c/c++.</p>
  
  <p>Searching for this hasn't got me any answer, I have only found a really hacky approach which is reading a file timestamp ( needless to say, I abandoned reading that halfway ). </p>
  
  <p>Another approach that I found was actually reading windows diagnostics logged events? Supposedly that has last boot up time.</p>
  
  <p>Does anyone know how to do this (with hopefully not too many ugly hacks)?</p>