title: Intel EG20T GPIO on Windows 7 Embedded
body: <p>I'm currently trying to listen for when a GPIO input pin goes high by using an interrupt on an Intel Atom board with a EG20T platform controller. I'm using intel's driver and have found their programmers guide here: <a href="http://www.intel.com/content/www/us/en/intelligent-systems/previous-generation/pch-eg20t-gpio-win-programmers-guide.html" rel="nofollow">http://www.intel.com/content/www/us/en/intelligent-systems/previous-generation/pch-eg20t-gpio-win-programmers-guide.html</a></p>
  
  <p>It seems fairly straight forward, make deviceIOControl calls to the specific pin with the macro for the operation you with to perform, but there are still some things I'm confused about.</p>
  
  <ol>
  <li>How do I create the hHandle to pass into the DeviceIOControl call? Or more specifically, if I use CreateFile what do I pass in as the file/device name?</li>
  <li>I don't really understand how Notify works, does the code just wait on that method until the pin status changes and then continues with the new data in the output buffer?</li>
  </ol>