473,406 Members | 2,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Help with events

Hi folks,
Ive asked this question before on this newsgroup but at the time nobody knew
the answer so hopefully somebody else will see this post this time around.

Id like to catch an event in my VB.NET code
the particular event im interested in is programs loading or starting , i
don't necessarily need to know the details of the program but just need to
know when any new ones are loaded or run.

Any ideas ?
Thanx in advance
_____________________________________

Matthew Purves , (Deadly_M)
www.DeadlyM.com
Nov 21 '05 #1
6 978

"Deadly_M" <NO********@REALdeadlym.com> wrote in message
news:41***********************@ptn-nntp-reader02.plus.net...
Hi folks,
Ive asked this question before on this newsgroup but at the time nobody
knew the answer so hopefully somebody else will see this post this time
around.

Id like to catch an event in my VB.NET code
the particular event im interested in is programs loading or starting , i
don't necessarily need to know the details of the program but just need to
know when any new ones are loaded or run.


You mean any program on the system?
Nov 21 '05 #2
Hi,

http://msdn.microsoft.com/msdnmag/is...0/CuttingEdge/

Ken
---------------
"Deadly_M" <NO********@REALdeadlym.com> wrote in message
news:41***********************@ptn-nntp-reader02.plus.net...
Hi folks,
Ive asked this question before on this newsgroup but at the time nobody knew
the answer so hopefully somebody else will see this post this time around.

Id like to catch an event in my VB.NET code
the particular event im interested in is programs loading or starting , i
don't necessarily need to know the details of the program but just need to
know when any new ones are loaded or run.

Any ideas ?
Thanx in advance
_____________________________________

Matthew Purves , (Deadly_M)
www.DeadlyM.com

Nov 21 '05 #3
Yes any programs starting
like, as in sombody runs "notepad.exe" or "quake3.exe"
anything that apears in the tasks list
..
"Daniel O'Connell [C# MVP]" <onyxkirx@--NOSPAM--comcast.net> wrote in
message news:O0**************@TK2MSFTNGP15.phx.gbl...

"Deadly_M" <NO********@REALdeadlym.com> wrote in message
news:41***********************@ptn-nntp-reader02.plus.net...
Hi folks,
Ive asked this question before on this newsgroup but at the time nobody
knew the answer so hopefully somebody else will see this post this time
around.

Id like to catch an event in my VB.NET code
the particular event im interested in is programs loading or starting , i
don't necessarily need to know the details of the program but just need
to know when any new ones are loaded or run.


You mean any program on the system?

Nov 21 '05 #4
Thanx for that article link
Im not sure if that will work for this tho. what if the user runs a program
the doesn't have a window ?
also i tried the example code but i could only get it to catch windows
spawned by that particular program , not in the scope of the whole system ?
Thanx

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:ey*************@tk2msftngp13.phx.gbl...
Hi,

http://msdn.microsoft.com/msdnmag/is...0/CuttingEdge/

Ken
---------------
"Deadly_M" <NO********@REALdeadlym.com> wrote in message
news:41***********************@ptn-nntp-reader02.plus.net...
Hi folks,
Ive asked this question before on this newsgroup but at the time nobody
knew
the answer so hopefully somebody else will see this post this time around.

Id like to catch an event in my VB.NET code
the particular event im interested in is programs loading or starting , i
don't necessarily need to know the details of the program but just need to
know when any new ones are loaded or run.

Any ideas ?
Thanx in advance
_____________________________________

Matthew Purves , (Deadly_M)
www.DeadlyM.com

Nov 21 '05 #5
http://thedotnet.com/howto/work219958.aspx
(includes a working WMI sample to detect when a process is created or
destroyed)

These deal with mouse and keyboard hooks. But the idea is the same:
http://www.codeproject.com/csharp/GlobalSystemHook.asp
http://www.codeproject.com/csharp/globalhook.asp
hope that helps..
Imran.

"Deadly_M" <NO********@REALdeadlym.com> wrote in message
news:41***********************@ptn-nntp-reader01.plus.net...
Thanx for that article link
Im not sure if that will work for this tho. what if the user runs a
program the doesn't have a window ?
also i tried the example code but i could only get it to catch windows
spawned by that particular program , not in the scope of the whole system
?
Thanx

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:ey*************@tk2msftngp13.phx.gbl...
Hi,

http://msdn.microsoft.com/msdnmag/is...0/CuttingEdge/

Ken
---------------
"Deadly_M" <NO********@REALdeadlym.com> wrote in message
news:41***********************@ptn-nntp-reader02.plus.net...
Hi folks,
Ive asked this question before on this newsgroup but at the time nobody
knew
the answer so hopefully somebody else will see this post this time
around.

Id like to catch an event in my VB.NET code
the particular event im interested in is programs loading or starting , i
don't necessarily need to know the details of the program but just need
to
know when any new ones are loaded or run.

Any ideas ?
Thanx in advance
_____________________________________

Matthew Purves , (Deadly_M)
www.DeadlyM.com


Nov 21 '05 #6
Ah , we might be getting somwhere now
Thanx to all who reply

"Imran Koradia" <no****@microsoft.com> wrote in message
news:eh**************@TK2MSFTNGP11.phx.gbl...
http://thedotnet.com/howto/work219958.aspx
(includes a working WMI sample to detect when a process is created or
destroyed)

These deal with mouse and keyboard hooks. But the idea is the same:
http://www.codeproject.com/csharp/GlobalSystemHook.asp
http://www.codeproject.com/csharp/globalhook.asp
hope that helps..
Imran.

"Deadly_M" <NO********@REALdeadlym.com> wrote in message
news:41***********************@ptn-nntp-reader01.plus.net...
Thanx for that article link
Im not sure if that will work for this tho. what if the user runs a
program the doesn't have a window ?
also i tried the example code but i could only get it to catch windows
spawned by that particular program , not in the scope of the whole system
?
Thanx

"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:ey*************@tk2msftngp13.phx.gbl...
Hi,

http://msdn.microsoft.com/msdnmag/is...0/CuttingEdge/

Ken
---------------
"Deadly_M" <NO********@REALdeadlym.com> wrote in message
news:41***********************@ptn-nntp-reader02.plus.net...
Hi folks,
Ive asked this question before on this newsgroup but at the time nobody
knew
the answer so hopefully somebody else will see this post this time
around.

Id like to catch an event in my VB.NET code
the particular event im interested in is programs loading or starting ,
i
don't necessarily need to know the details of the program but just need
to
know when any new ones are loaded or run.

Any ideas ?
Thanx in advance
_____________________________________

Matthew Purves , (Deadly_M)
www.DeadlyM.com



Nov 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: dave | last post by:
Hi, I have a COM control / server I'm trying to get events from in my c# applications. 1) I'm trying to get events in both c# console apps and in c# winform apps. 2) I can call methods on the...
0
by: charles hamm | last post by:
Okay, I'm trying to synchronize two threads using CEvent and CMultilock. What I need to achieve here is that they can execute in parallel until they reach a succession of "barriers" (borrowing a...
10
by: Bharat | last post by:
Hi Folks, Suppose I have two link button on a page (say lnkBtn1 and lnkBtn2). On the click event of the lnkbtn1 I have to add a dynamically created control. And On the click event of the lnkBtn2 I...
3
by: Lester | last post by:
I'm driving myself crazy with a problem in trying to translate a query written for Access to that for SQL server. I would think that I would use a trigger, but am not sure how to set it up. We...
3
by: Lester | last post by:
I'm driving myself crazy with a problem in trying to translate a query written for Access to that for SQL server. I would think that I would use a trigger, but am not sure how to set it up. We...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.