> i'm currently building a multi-platform renderfarm application, and > would need to use GetProcessId to circumvant problems i encounter when > i try to kill processes on win32 > > IE: i can't kill with TerminateProcess a process i spawned with > CreateProcess (getting a Acess Denied error), but i can kill it using > this chunk of aspn'd code > > PROCESS_TERMINATE = 1 > handle = win32api.OpenProcess(PROCESS_TERMINATE, False, pid) > win32api.TerminateProcess(handle, -1) > win32api.CloseHandle(handle)
But doesn't CreateProcess also return the PID to you, meaning you can safely use the code above? If the 2 processes are running as the same user, I'm surprised it fails. > I then tried to compile the cvs trunk using python setup.py build, but > got this error > > Building pywin32 2.4.210.1 > running build > running build_py > running build_ext > Warning - can't find an installed platform SDK > error: The .NET Framework SDK needs to be installed before building > extensions for Python. > > After several .net installs, i still got this error : \ After installing the Platform SDK (or .NET SDK), you still got the exact error above? It might be worth looking at the source code to see why it fails to be detected. > i also tried (and failed) compiling it on visual studio, cygwin+mingw, These day, setup.py is the only way that is known to work (well - sometimes :) Mark _______________________________________________ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32