Results 1 to 2 of 2

Thread: Terminateprocess and DUN

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Posts
    2

    Angry

    Please help.....

    I'm unable to terminate a process in Win95/98 started by the following line of code:

    lngTaskID = Shell("rundll32.exe rnaui.DLL,RnaDial " & <strLocation>, vbNormalFocus)

    It seems the TerminateProcess-function doesn't have any effect on closing down a connection made to <strLocation>.

    Any suggestions?

    Thank you!

  2. #2
    Member
    Join Date
    Aug 2000
    Posts
    60
    If you can get the handle of the window you want to close you can use the sendmessage command, with the message wm_close to close the program, if you are trying to close a program that is not visible though, you are looking in the right direction.

    Grant French
    -----------------------------------------------
    E-Mail: [email protected]
    ICQ: 33122184

Posting Permissions

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



Click Here to Expand Forum to Full Width