Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TerminateProcess doesn't terminate iexplore.exe on NT
Message
From
04/06/2002 13:50:12
 
 
To
04/06/2002 11:35:38
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00664530
Message ID:
00664625
Views:
20
>i have a little procedure to terminate running process. i want to use this to close internet web page by closing iexplore.exe process. On Windows 98 the TerminateProcess function works well but doesn't work on NT system.
>why this ?
The enumerated window / form hook is different on NT than it is on W98 - threw me for a loop to -
so if you are looking for window handle, and it always evaluates to 0 -
then try to get the caption of the browser instead. hard to do sometimes.

also - look at the sendmessage function - it may be that you can't terminate a process because you don't have root on the box. does it work when you are logged in as the administrator? if so, then it's a rights problem - and sendmessage can close a program once it has the handle.

hth - regards [Bill]
Previous
Reply
Map
View

Click here to load this message in the networking platform