SPONSORS:






User Tag List

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    May 2002
    Location
    Pune
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Kill a process using Silk

    Hi,
    I would like to that how a process can be killed using Silk. Since the SYS_Kill function is supported only on UNIX systems, how do I go about on a Win2K/WinXP/WinNT OS.

    Regards,
    Matin

    ------------------

  2. #2
    Senior Member
    Join Date
    Jul 2000
    Posts
    186
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Kill a process using Silk

    For Win2000 and WinNT I declared the Task Manager window. Then you can Invoke TaskManager, change to the Processes tab, select the process, and click the End Process button.

    ------------------
    Tom

    [This message has been edited by tmason (edited 05-28-2002).]
    Tom

  3. #3
    Member
    Join Date
    Aug 2001
    Location
    Ireland
    Posts
    64
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Kill a process using Silk

    Hi Matin,

    I could also use Process Viewer which you can get free from http://www.prcview.com. I needed this tool as I had trouble working with Task Manager. This tools works very nicely indeed. Both of these options will work for you.

    Regards,
    Conor

    ------------------

  4. #4
    Senior Member
    Join Date
    Apr 2001
    Location
    San Diego,CA,USA
    Posts
    108
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Kill a process using Silk

    If you don't want to get into the business of opening the task manager as this can be very time consuming if you have lot of tests opeing the Task Manager could really prove very slow. as an alternative you can kill the process using terminate process API. You can store the PID of the app as soon as the test starts. or else you can get it with app.GetAppID at the time of terminating the app.


    long PHndl=OpenProcess(0x0001,0,App.GetAppID())
    TerminateProcess(PHndl,111)

    both of these API's are in kernel32.dll

    ------------------

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 10:59 AM.

Copyright BetaSoft Inc.