title: How to check if current OS is Windows 7?
body: <p>I'm developing a windows app (it depends on DirectShow, so no Linux, etc).</p>
  
  <p>It will run, for now, in XP and Windows 7 (no Vista support).</p>
  
  <p>However, there's a piece of code that behaves very differently in XP or Windows 7, so I need to know in which system I am, to make a workaround. As I don't support Vista -and even if I did, I guess there wouldn't be much differences- I don't care if Vista and 7 are identified as the same OS, although I'd prefer they weren't.</p>
  
  <p>Just in case, I'm developing in c++, and I don't want to maintain two different executables, and I'd prefer a language-agnostic way to do it.</p>
  
  <p>So, my question: What's The Right Way(tm) to check at run-time which windows version is running?</p>