Re: [python-win32] Reboot apis don't work in a NT service

2008-03-20 Thread Tim Golden
le dahut wrote: > To reboot the computer I've tried this different functions : > win32api.ExitWindowsEx(EWX_REBOOT | EWX_FORCE) > win32api.InitiateSystemShutdown(None, '', 0, True, 1) > win32ts.WTSShutdownSystem(wts.WTS_CURRENT_SERVER_HANDLE, wts.WTS_WSD_REBOOT) > wa.WinExec('shutdown -r -t 0 -f')

Re: [python-win32] Regarding Threads and locals()

2008-03-20 Thread Tim Roberts
Tejovathi P wrote: > Hi all, > > I have a GUI applicaion(along with threads). When the run button is > pressed in the GUI a separate thread starts( Thread is created using > beginthreadex) and does the > required activity. > Now, while the thread is being executed, i want the locals() present >

Re: [python-win32] Regarding Threads and locals()

2008-03-20 Thread Mike Driscoll
> Message: 6 > Date: Thu, 20 Mar 2008 16:07:15 +0530 > From: "Tejovathi P" <[EMAIL PROTECTED]> > Subject: [python-win32] Regarding Threads and locals() > To: python-win32@python.org, [EMAIL PROTECTED] > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="iso-8859-1" >

[python-win32] Regarding Threads and locals()

2008-03-20 Thread Tejovathi P
Hi all, I have a GUI applicaion(along with threads). When the run button is pressed in the GUI a separate thread starts( Thread is created using beginthreadex) and does the required activity. Now, while the thread is being executed, i want the locals() present inside the thread's run function to b

[python-win32] Reboot apis don't work in a NT service

2008-03-20 Thread le dahut
Hello, I use a service tu update another. It download an InnoSetup file, launch it with /silent and restart the computer at the end of the process. To reboot the computer I've tried this different functions : win32api.ExitWindowsEx(EWX_REBOOT | EWX_FORCE) win32api.InitiateSystemShutdown(None, ''