Re: Shutting down windows using win32api



On Apr 11, 7:49 pm, Tim Golden <m...@xxxxxxxxxxxxxxx> wrote:
On a whim, given the terseness of your post, I
cut-and-pasted your subject line into Google,
added "python" for good measure, and looked at
the results.

I suggest you might do the same. Granted, maybe
this will raise more questions, but at least it
shows willing :)

TJG

use ctypes module to execute the windows api.

Shutdown windows can use the follow api
BOOL ExitWindowsEx(
UINT uFlags,
DWORD dwReason
);
about the usage, u can refer to the microsoft msdn


.



Relevant Pages

  • Re: global, globals(), _global ?
    ... things, than the C++ side, I do work regularly at Google in both ... Python, proving I know and apply the Google style rules very well, and ... Ruby's the only language that mandates stropping for globals ...
    (comp.lang.python)
  • Re: status of Programming by Contract (PEP 316)?
    ... such control systems that run on aircraft themselves, ... Because Python *IS* used in the latter ... implied aspersions against Python's reliability. ... Google -- i.e., the groups I uber-lead are responsible for some software ...
    (comp.lang.python)
  • Re: Python Web Programming - looking for examples of solid high-traffic sites
    ... with Google, Inc. ... details about using Python for websites on YouTube's scale) in Portland, ... the architecture than on the implementation language (as long as highly ... used internal web-app at Google is Mondrian, ...
    (comp.lang.python)
  • Re: using urllib2
    ... did not post the html, but I mean if you want, right click on your browser ... and hit view source of the google homepage. ... Now you got the whole html response, you'll have to parse it to recover datas, ... 'Python Properties', ...
    (comp.lang.python)
  • Re: Ruby is exploding onto the scene as Java did at the end
    ... > Regarding Google: I spent some time talking to Alex Martelli of ... Python does the job, it does it rather well and they have no interest ... If I had to guess where Ruby will ...
    (comp.lang.ruby)