?
Solved

How to know whether a new application started, programmatically?

Posted on 2000-04-08
4
Medium Priority
?
152 Views
Last Modified: 2013-11-20
I want to know is there any way to find what are the applications started by the Windows OS and notify when any new application is instantiated. I would be highly obliged for the reply. With best regards Imtiaz
0
Comment
Question by:imtiazahmad
  • 3
4 Comments
 
LVL 3

Accepted Solution

by:
SamHobbs earned 25 total points
ID: 2695992
See SetWindowsHookEx(WH_SHELL, ...... )

The HSHELL_WINDOWCREATED hook code indicates that a top-level, unowned window has been created and a HSHELL_WINDOWDESTROYED hook code indicates that a top-level, unowned window is about to be destroyed.

However, this is an advanced function that is not simple to use.

0
 

Author Comment

by:imtiazahmad
ID: 2698961
I would be very much thankful if U can give some sample for this
0
 
LVL 3

Expert Comment

by:SamHobbs
ID: 2698985
I am reluctant to share because it is something that can easily be misused and eventhough you will be careful, anything posted here will be accessible to the public. I know that there are a few careless people that would rather make something work by whatever mechansim they can rather than spend time reading documentation.

Your requirements are common enough that perhaps I should package it into a utility that would be safe enough for the public.

I hope you will be able to get a good start from the references at: http://home.socal.rr.com/samhobbs/VC/Hooks.html

0
 
LVL 3

Expert Comment

by:SamHobbs
ID: 2718626
I do not really care about a bad grade. If I cared, I would ignored this question. People that care about points would certainly have ignored this question worth only 25 points. Since you are not happy, and I want you to be happy, I will ignore your questions in the future.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question