CreateProcess in NT Service
Dale Burnett
denalione at my-deja.com
Thu Aug 10 15:48:41 EDT 2000
Inside of the NT service I am calling createprocess. I need to call
another python script. This also doesnt work from the interactive
window.
import win32security
import win32process
sa = win32security.SECURITY_ATTRIBUTES()
si = win32process.STARTUPINFO()
h = win32process.createprocess('c:\\python\\myprogram.py',None,None,
None,1,0,None,None,si)
The error I get is:
api_error: (193,'CreateProcess','No error message is available')
I can start other programs this (notepad,wordpad) way from the
interactive window.
The only thing I can think of is the way the new process is trying to
handle stdout.
Does anyone know a solution for this?
Thanks
Dale
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list