Can you kill a 64-bit process from a 32-bit Ruby? https://github.com/djberg96/win32-process/issues/9 Regards, Dan
Hi, 2013/2/4 Daniel Berger <djberg96 at gmail.com>> Can you kill a 64-bit process from a 32-bit Ruby? > > https://github.com/djberg96/win32-process/issues/9 > >64bit processes can only be terminated from 64bit processes. Refer to http://urbackup.org/blog/?p=77 http://www.powerprogrammer.co.uk/helpfile/Software%20Update%20Wizard/64bitnotes.html The workaround is kill a process using WMI http://community.spiceworks.com/scripts/show/498-kill-a-process-using-wmi Regards, Park Heesob -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/win32utils-devel/attachments/20130204/82ae4cc3/attachment.html>
On Mon, Feb 4, 2013 at 6:51 AM, Heesob Park <phasis at gmail.com> wrote:> Hi, > > 2013/2/4 Daniel Berger <djberg96 at gmail.com> >> >> Can you kill a 64-bit process from a 32-bit Ruby? >> >> https://github.com/djberg96/win32-process/issues/9 >> > > 64bit processes can only be terminated from 64bit processes. > > Refer to > http://urbackup.org/blog/?p=77 > http://www.powerprogrammer.co.uk/helpfile/Software%20Update%20Wizard/64bitnotes.html > > The workaround is kill a process using WMI > http://community.spiceworks.com/scripts/show/498-kill-a-process-using-wmiI should have been more specific. Actually, you can kill it using signal 9, i.e. TerminateProcess, using the win32-process library. The problem is with CreateRemoteThread. Regards, Dan