Popular recipes tagged "passing"http://code.activestate.com/recipes/tags/passing/popular/2011-08-28T12:25:49-07:00ActiveState Code RecipesCheck PC Power (Python) 2011-08-28T12:25:49-07:00Frank Larkinhttp://code.activestate.com/recipes/users/4179117/http://code.activestate.com/recipes/577861-check-pc-power/ <p style="color: grey"> Python recipe 577861 by <a href="/recipes/users/4179117/">Frank Larkin</a> (<a href="/recipes/tags/api/">api</a>, <a href="/recipes/tags/computer/">computer</a>, <a href="/recipes/tags/passing/">passing</a>, <a href="/recipes/tags/pointers/">pointers</a>, <a href="/recipes/tags/power/">power</a>, <a href="/recipes/tags/widows/">widows</a>). </p> <p>Call windows API GetSystemPowerStatus to determine if the AC power is on or off. Great example of calling Windows APIs using Ptyhon.</p>