Use C# to read handedness setting from Windows 8
<p>On Windows 8 I'm trying to determine what the handedness of the mouse is using C#. In other words, I'm trying to read this setting:</p>

<blockquote>
  <p>Control Panel\Hardware and Sound\Mouse -> Switch primary and secondary
  buttons.</p>
</blockquote>

<p>I've tried using WMI but with no luck. The handedness property value is always null, whatever mouse I use.</p>

<pre><code>SelectQuery selectQuery = new SelectQuery("Win32_PointingDevice");
ManagementObjectSearcher searcher = new ManagementObjectSearcher(selectQuery);

foreach (var mouse in searcher.Get())
{
    foreach (var property in mouse.Properties)
    {
        Console.WriteLine("{0}: {1}", property.Name, property.Value);
    }
}
</code></pre>

<p>Are there any other ways to accomplish this task?</p>