Solved

How to know whether a new application started, programmatically?

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need a Shell script to start a service checking the port 6 50
sum28 challenge 31 111
pre4 challenge 19 100
Excel file not created as expected 7 71
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…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

785 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