title: __uuidof in C Master Volume Windows
body: <p>I want to change master volume with C, but <code>__uuidof</code> is only for C++; what can I use instead of that?</p>
  
  <pre><code>const CLSID CLSID_MMDeviceEnumerator = __uuidof(MMDeviceEnumerator);
  const IID IID_IMMDeviceEnumerator = __uuidof(IMMDeviceEnumerator);
  hr = CoCreateInstance(
       CLSID_MMDeviceEnumerator, NULL,
       CLSCTX_ALL, IID_IMMDeviceEnumerator,
       (void**)&amp;deviceEnumerator);
  </code></pre>
  
  <p>I only found that: <a href="https://stackoverflow.com/questions/8868784/alternative-to-uuidof-in-c">Alternative to __uuidof in C</a></p>