SPONSORS:






User Tag List

Results 1 to 3 of 3

Thread: API - DLL

  1. #1
    Guest

    Re: API - DLL

    I have not attempted to access this API call, but I do have some questions about how you are implementing the call to TerminateProcess().

    TerminateProcess() takes two parameters: hProcess, which is a handle to the process, and uExitCode, which is the exit code for the process and for all threads associated with the process. How are you acquiring the handle to the process, and does this handle have PROCESS_TERMINATE access?

    ExitProcess() is the recommended method for terminating a process, as the integrity of global data used by DLLs may be compromised by a call to TerminateProcess().

    If you are ultimately successful at "killing" a process from within Silk, I would be interested in knowing how you implemented this functionality.

    Tony Mrozinski
    Sr. Software Test Automation Engineer
    Home Networking Operations
    Intel Corporation

  2. #2
    Junior Member
    Join Date
    Nov 1999
    Location
    Los Angeles, CA
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    API - DLL

    I'm trying to use the TerminateProcess API call to "kill" an application on Win95/98/NT.

    Has this ever worked for anyone?

    I'm not sure if my declarations are incorrect, the calls I am making, or Silk itself.

    Any help would be appreciated.

    Roee Rubin
    rrubin@rotorcom.com

  3. #3
    Junior Member
    Join Date
    Nov 1999
    Location
    la,ca,us
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: API - DLL

    I wanted to reply earlier but was to busy at work. I dug up the following code I had written in the past. It works for me. Though ExitProcess is the cleaner way. The handle that I am passing in to killapp is the handle from Silk's GetHandle() method. Hope this helps.


 

 

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 12:46 PM.

Copyright BetaSoft Inc.