title: win32 - How to use SYSTEMTIME structure as a countdown clock
body: <p>Hey everyone I am using the structure SYSTEMTIME to perform arithematic with c++ to create a countdown timer. How would I set a custom time and make it countdown? This is a very generic question but if anyone who has experience with the SYSTEMTIME structure would be able to give me some assistance that would be very much appreciated! </p>
  
  <ol>
  <li><p>I want to set a default time for SYSTEMTIME so like</p>
  
  <pre><code>SYSTEMTIME tvar;
  GetLocalTime(&amp;tvar); // instead of using this to initiate the clock i'd like to set the time by myself
  </code></pre></li>
  </ol>
  
  <p>2.
   Also, how can I make this clock countdown from that time? </p>
  
  <p>Take note that since I am using GDI it is necessary for me to use this structure and since the code that I already worked on with my group uses this structure we already have it implemented, so there is no room for changing, can anyone give me a solution to solve those two issues that I have? </p>
  
  <p>!!! EDIT !!! I'm trying to recreate this timer here <a href="http://www.picksourcecode.com/ps/ct/161097.php" rel="nofollow">http://www.picksourcecode.com/ps/ct/161097.php</a> in countdown format with just hours and minutes for a bomb timer for the adventure game that I am making with opengl. How would I reprogram this code so that I can incorporate a countdown digital clock of this standard?</p>
  
  <p>Any help is appreciated, thanks so much!</p>