PDA

Click to See Complete Forum and Search --> : Terminateprocess and DUN


Summer69
Oct 29th, 2000, 03:59 AM
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!

gfrench
Oct 29th, 2000, 08:49 AM
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.