Solved

How to know whether a new application started, programmatically?

Posted on 2000-04-08
4
142 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
Comment Utility
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
Comment Utility
I would be very much thankful if U can give some sample for this
0
 
LVL 3

Expert Comment

by:SamHobbs
Comment Utility
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
Comment Utility
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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 …
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.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now