title: Comparing two GUIDs for equality in C++
body: <p>I am looking for the easiest way to compare two GUIDs for equality in C++. Surely there is a predefined function for that.</p>
  <p>The solution needs to work with <a href="https://en.wikipedia.org/wiki/Visual_C%2B%2B#32-bit_and_64-bit_versions" rel="nofollow noreferrer">Visual C++ 2010</a>.</p>
  <p>I am talking of GUID as defined in Guiddef.h:</p>
  <pre><code>typedef struct _GUID {
      unsigned long  Data1;
      unsigned short Data2;
      unsigned short Data3;
      unsigned char  Data4[ 8 ];
  } GUID;
  </code></pre>