Re: Win32::Process Kill Process in Windows ME




"Stefan Mueller" <s1210197@xxxxxxxx> wrote in message
news:f35b4d73.0504142300.553dc396@xxxxxxxxxxxxxxxxxxxxx
> Hello Rob,
>
> Thank you for your answer.
>
> "Sisyphus" <sisyphus1@xxxxxxxxxxxxxxxxx> wrote in message
news:<425ce4a5$0$29868$afc38c87@xxxxxxxxxxxxxxxxxxxx>...
> > What actually happens ? Does the script hang .... or exit silently ....
or
> > .... ?
> > Do you get any warnings or error messages ?
>
> No, I get no error messages. The script doesn't hang, it exists like
> the way on XP.
>

I can't find any documented reason for the problem (and I don't actually
have a Windows ME to experiment with). KillProcess() calls OpenProcess() and
TerminateProcess(). I've checked the msdn docs for both OpenProcess and
TerminateProcess and there's no mention of any special considerations
regarding Windows ME.

If you want (and assuming you can compile Win32::Process from source) you
could try changing (in Process.xs):
HANDLE ph = OpenProcess(PROCESS_ALL_ACCESS, 0, pid);
to:
HANDLE ph = OpenProcess(PROCESS_TERMINATE, 0, pid);

(You'll find that about 5 or 6 lines from the end of the file.) I can't
really think of any reason that should help, however.

ActiveState now hosts a (low volume) libwin32-perl mailing list. Maybe
someone there can help. See:
http://aspn.activestate.com/ASPN/Mail/

Cheers,
Rob






.



Relevant Pages

  • Re: Error Messages in Word 2002 When Using "Save To" Function
    ... Windows Explorer and Copy or Send from there to the desired drive. ... I think you're using Save As to open an Explorer window, ... > Hi Rob, ... That is when I'm getting the error messages. ...
    (microsoft.public.word.application.errors)
  • Re: Code to Insert Formula in Cell
    ... Rob, thanks. ... Does this go into the worksheet module? ... have it in the right type of module or the correct declaration. ... but still got various error messages like ...
    (microsoft.public.excel.programming)
  • Re: Import Problems
    ... > See screenshot of error I get. ... I get an error messages ... Any assistance is greatly appreciated. ...
    (microsoft.public.access.formscoding)
  • Re: Cant use cout in G++
    ... > Note that the error messages you gave indicate that gcc can't find ... Rob, you are the man!! ... have to do is pass my object as a const ref to the << operator. ...
    (comp.lang.cpp)