Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Detecting Window's StartUp

Status
Not open for further replies.

caydes

Programmer
Mar 27, 2000
6
SG
Hi all,<br>
<br>
Is it possible to write a C function to detect a Window's Startup (or even an application startup, like Microsoft Word) and another to stop it from starting up?<br>
<br>
If so, how to do it?<br>
<br>
Thanx.
 
You could arrange for your program to be in the StartUp group. You would know when someone logged in then.<br>
<br>
Alternatively - you could install your program as a Windows Service marked for automatic startup. This is probably the cleaner way to do this as your ordinary user won't be able to remove it.<br>
<br>
Mike <p>Mike Lacey<br><a href=mailto:Mike_Lacey@Cargill.Com>Mike_Lacey@Cargill.Com</a><br><a href= Cargill's Corporate Web Site</a><br>
 
Thanx mike. The other method I would like to use is to use interrupts. Through interrupts you can trap the pid's of the program running. Then you can check in the ID table for that . If it is running you can get the message as TRUE . <br>Does that answer your question ?<br>Thanx<br>Siddhartha Singh<br><A HREF="mailto:ssingh@aztecsoft.com">ssingh@aztecsoft.com</A>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top