title: Print a GUID variable
body: <p>I have a GUID variable and I want to write inside a text file its value. 
  GUID definition is:</p>
  
  <pre><code>typedef struct _GUID {          // size is 16
      DWORD Data1;
      WORD   Data2;
      WORD   Data3;
      BYTE  Data4[8];
  } GUID;
  </code></pre>
  
  <p>But I want to write its value like:</p>
  
  <pre><code>CA04046D-0000-0000-0000-504944564944
  </code></pre>
  
  <p>I observed that: </p>
  
  <ul>
  <li><code>Data1</code> holds the decimal value for CA04046D</li>
  <li><code>Data2</code> holds the decimal value for 0</li>
  <li><code>Data3</code> holds the decimal value for next 0</li>
  </ul>
  
  <p>But what about the others?</p>
  
  <p>I have to interpret myself this values in order to get that output or is there a more direct method to print such a variable?</p>