title: SIOCGIFHWADDR for ioctlsocket in mingw
body: <p>I am using mingw to compile my cpp program which has to get MAC address. In unix, sys/ioctl.h
  provides 'SIOCGIFHWADDR' to read it. But for mingw win32, there is a replacement for ioctl named as ioctlsocket. I am using it but it doesn't have 'SIOCGIFHWADDR' command.</p>
  
  <p>How can I read the hardware MAC address using ioctlsocket?</p>
  
  <p>Thanks in advance.</p>
  
  <p>Following is the function I am using </p>
  
  <pre><code>ioctl(fd, SIOCGIFHWADDR, &amp;ifr); //Unix it works
  ioctlsocket(fd, SIOCGIFHWADDR, &amp;ifr); //win32, doesn't work
  </code></pre>