Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How to know whether a new application started, programmatically?

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

790 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