title: Getting the motherboard's serial number
body: <p>I want to bind a program to a specific computer, and for that I want to use
  the serial number of the motherboard as unique identifier.</p>
  
  <p>Although I could find some examples for C# and Java, I couldn't find anything reliable for C++ (I read WMI can fail depending on the hardware), but surely there's a way to do this in C++ too?</p>
  
  <p><strong>Edit</strong> : What I want is, in other words, like a simple and rudimentary licensing system. To make it more clear, here's how it would look like :</p>
  
  <pre><code>#define USER_SERIAL 123456789
  
  double GetMotherBoardSerialNumber();
  // ...
  
  double currentSerial = GetMotherBoardSerialNumber();
  
  if(currentSerial != USER_SERIAL) {
      exit 1;
  }
  </code></pre>
  
  <p>It is obviously not perfect, but I don't have any server atm to set up an account system so this could be a temporary solution.</p>