Stopping An Application

Hi Guys,
Is there anyway to detect if another application is starting and hang it up until I allow it to carry on in my program?

Basically I want to stop those very annoying Internet Explorer popup windows. I want to detect that another IE is being launched and what it's windows title is. I then want to hang the launching IE until I click a button on my application to continue launch or kill the launch.

Not sure if this would work.. but would it be possible to create your own intermidiate step inbetween launching a web page. If it's possible to register your own app as the default browser then maybe you could just forward all the requests to IE or netscape...

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

I think IE only pops a new *window*, not a new *process*. So the question is not: How to detect (and halt) new applications/processes, but only how to detect (and halt) new windows in the IE process, right?

You can use SetWindowsHookEx(WH_CBT). You have to put your callback function into a little dll. Your callback function will have the power to allow or deny new windows to be created. See the documentation about SetWindowsHookEx(WH_CBT).

Please update the expert here who have so willingly stepped in to help you, since much time has passed since your last comments, and Email notifications may not have been generated to the participating experts here due to some problems at that time. If you've been helped, accept the respective question by that expert to grade and close it.

Somewhat off-topic, but important.

****************************** ALERT********************************
WindowsUpdate - Critical Update alert March 28, 2002 from Microsofthttp://www.microsoft.com/technet/treeview/default.asp?url=/technet/security/bulletin/ms02-015.asp
Synopsis:
Microsoft Security Bulletin MS02-015
28 March 2002 Cumulative Patch for Internet Explorer
Originally posted: March 28, 2002
Summary
Who should read this bulletin: Customers using Microsoft® Internet Explorer
Impact of vulnerability: Two vulnerabilities, the most serious of which would allow script to run in the Local Computer Zone.
Maximum Severity Rating: Critical
Recommendation: Consumers using the affected version of IE should install the patch immediately.
Affected Software:
Microsoft Internet Explorer 5.01
Microsoft Internet Explorer 5.5
Microsoft Internet Explorer 6.0

Thought you'd appreciate knowing this.
":0)
Asta

0

WoodyJ007Author Commented: 2002-04-02

I actually found an application that did it in the end but I have used the hook for other things now so I'm sure it would work correctly. Plus I use IE6 and Win2K now which spawns seperate proccesses so it's easier to stop.