Solved

How to know whether a new application started, programmatically?

Posted on 2000-04-08
4
146 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
xyBalance chalenge 58 102
has77  challenge 9 99
post4 challenge 28 113
Annoying "thing" blocks my view 4 133
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.

730 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